Forum Moderators: phranque

Message Too Old, No Replies

htaccess

directory re-direction

         

mack

6:30 am on Sep 12, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



On my site i am im the prosess of moving a lot od directories about and i think the best thing to do woudl be to offer a htaccess redirect for any hits to the old file locations.

what i woudl liek to do is make a htaccess file to ....

site.com/content/anything leads to
site.com/newcontent/anything

the files have remained the same only the directory names have changed is it possibel to have all files lead to their corect location in th enew directory. if so could someone please explain how it is done... i have never used htacess before for redirection puropses.

bobriggs

12:11 pm on Sep 12, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



RedirectMatch permanent ^/content(.*) [site.com...]

mack

7:57 am on Sep 13, 2002 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Thank you, that did the job nicely.

Been reading up on htaccess, never realised just how much you could do with that file :)