Hi,
I have an old web server (windows box) and a new web server (lamp server running RHEL 5). The old web server is now known only by its IP address and the new one has the domain name formerly belonging to the old one.
Now I need to permanently redirect domain.com/subdirectory1/subdirectory2/subdirectory3 /filename.html back to the old server using the IP address. This is just for one file. So I set up
/var/www/html/subdirectory1 and put a .htaccess file in it reading:
Code:
RewriteEngine ON
Redirect 301 /subdirectory1/subdirectory2/subdirectory3/filename.html http://000.000.000.00/subdirectory1/subdirectory2/subdirectory3/filename.html
I did chmod 644, made sure mod rewrite was loaded and restarted Apache.
The redirect isn't working. Can anyone tell me what I'm missing or did incorrectly?
Thanks.