Forum Moderators: phranque
Ok...I'm trying to do a simple 301 redirect from one page to another. The files reside within a sub-directory structure, and I'd like to know it's going to be correct prior to trying it...
(I'd feel really stupid if it messed things up...)
are any of these correct?
RewriteEngine on
RewriteRule ^directory/oldfile\.htm$ .../directory/newfile.htm[R=301,L]
RewriteEngine on
RewriteRule ^directory/oldfile\.htm$ http://www.example.com/directory/newfile.htm[R=301,L]
is there an easier way?
Thanks for your time!
Tera
[edited by: jdMorgan at 1:29 am (utc) on Oct. 25, 2008]
[edit reason] example.com [/edit]
RewriteEngine on
RewriteRule ^directory/oldfile\.htm$ http://www.example.com/directory/newfile.ht[b]m [R[/b]=301,L]
Redirect 301 /directory/oldfile.htm http://www.example.com/directory/newfile.htm
Jim