Web Servers on Unix and Linux - Need to move some pages into subfolders...

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > April 2004 > Need to move some pages into subfolders...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Need to move some pages into subfolders...
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com