Forum Moderators: phranque
Also, for clarification, I would use:
redirect 301 /folder/old.htm htt://www.newsite.com/new.htm
In the above line, if "folder" is actually just the public_html folder would I just write the line as:
redirect 301 /old.htm htt://www.newsite.com/new.htm
or would it read:
redirect 301 /public_html/old.htm htt://www.newsite.com/new.htm
Thanks for any and all advice.
Welcome to WebmasterWorld!
> For a 301 redirect to work do the actual (old) HTML pages need to be present at the old site?
No, the server will process the redirect directive and return the 301 response before checking whether the files exist.
In the scenario you describe,
Redirect 301 /old.htm http://www.example.com/new.htm
For example, using the directive above, /old.html will be redirected to http://www.example.com/new.html as well.
So, it is possible to redirect all URLs to the new domain by using
Redirect 301 / http://www.example.com/
If you need more-sophisticated URL-matching, see RedirectMatch [httpd.apache.org].
Jim
Interestingly I checked with my host provider's(iPowerweb) tech support and they stated the old HTML files DO need to be present. I thought this was strange and doesn't really make a lot od sense as pages changes, come and go.
Thanks again.
Tad
>Welcome to WebmasterWorld!
> For a 301 redirect to work do the actual (old) HTML pages need to be present at the old site?
>No, the server will process the redirect directive and return the 301 response before checking whether the files exist.