| Andy Rigby 2004-04-30, 11:37 am |
| I need to rearrange my site now that I am getting a lot more pages.
Currently, everything apart from images is in the root folder, but I
want to create subfolders for different product categories, and then
move my product pages in there.
Is there a way I could setup .htaccess file so that any incoming link
for a product eg:
www.mysite.com/widget100.html
would redirect to
www.mysite.com/widgets/widget100.html
but also
www.mysite.com/sprocket5.html
would redirect to
www.mysite.com/metalstuff/sprocket5.html
This is so that I don't cock up any existing links from Google etc and
other sites that link directly to an individual product page.
Obviously I can't code a separate redirect for each product in the
..htaccess as there are already 800 or so.
Andy
|