I have the following code:
Redirect /email http://email.secureserver.net
Which doesn’t seem to be working. Basically, I need to be able to redirect someone when they go to http://www.thedomain.com/email/ to http://email.secureserver.net
Now I want this to be able to work on my testing server and also when it goes live so I don’t have to change the code.
So for testing the URL will be something like:
www.testingserver.com/clients/drews-garage/live/email/
And for when it goes live it will be:
www.thedomain.com/email/
So based on the code I provided above, that should work either way but it doesn’t seem to work on my testing server. I tried a 301 redirect to.
Anyone have any ideas?
Thanks!
I suggest you to use
mod_rewrite‘sRewriteRule. Rather thanmod_alias‘sredirect.The above will match
email/in your URI path. So,clients/drews-garage/live/email/as well asemail/will be matched.Is not working because of your URL:
www.testingserver.com/clients/drews-garage/live/email/The above is trying to redirect
www.testingserver.com/email/or
mod_aliasmight not be loaded. But,mod_aliasis usually loaded by default so this case is very unlikely.