Will this redirect work [a-z]* to example.com
ie., I want to redirect anything to example.com
Thanks Jean
Will this redirect work [a-z]* to example.com
ie., I want to redirect anything to example.com
Thanks Jean
If you want to redirect anything to example.com, what you probably want is something like this:
RewriteRule ^[a-z]*$ http://www.example.com [R,L]
This will redirect ANY request made to the any part of your URL to http://www.example.com. I.e.,
http://mysite.com => http://www.example.com
http://mysite.com/asdasd => http://www.example.com
http://mysite.com/another/test => (not forwarded)
Putting RedirectPermanent / http://example.com/
in your Apache httpd configuration should do the trick.