Forum Moderators: open
[edited by: mack at 6:15 pm (utc) on Aug. 21, 2002]
mysite.com/old/content/.....
becomes
mysite.com/new/contect/.....
can I still use htaccess at root directoryto redirect from old to new... for example if a user requests /old/page1 will it be possible to redirect them to /new/page1.
Is it possible to send a user to the same page but in a different directory. I have never worked with htaccess before.
RedirectMatch 301 /old/(.*) [mysite.com...]
See:
[httpd.apache.org...]
If you don't put the 301 in there, apache will default to a 302 status code.
redirectpermanent /old-dir/page.htm [yoursite.com...]
Hope it helps.