Click to See Complete Forum and Search --> : [RESOLVED] Redirect all to root of new domain


Dasher
07-24-2009, 12:52 PM
I have a what I thought would be a simple redirect but it does not work universally.


#AddHandler application/x-httpd-php5 .php
#Options +FollowSymlinks
#RewriteEngine on
Redirect (.*) http://www.new-website.com/ [R=301,L]


But if I issue a url with
www.old-website.com/some-directory/some-file.html

I get a 404 and a 403 error instead of a redirect. What do I need to do to just redirect everything to the new url without regard to the path.

Dasher
07-24-2009, 01:59 PM
part of the problem is I have used SEO friendly URL's and those URLs do not actually relate to a real directory or file. So now the these pseudo addresses don't resolve.

Dasher
07-25-2009, 04:18 PM
I fixed it with


ErrorDocument 404 http://www.new-website.com