Welcome to the OzoneAsylum FaqWiki
Frequently Asked Questions
Server Side Coding
Apache

How do I redicrect from an old domain to a new one using Apache? Pages that link to <a href="https://ozoneasylum.com/backlink?for=5760" title="Pages that link to How do I redicrect from an old domain to a new one using Apache?" rel="nofollow" >How do I redicrect from an old domain to a new one using Apache?\

Use:

code:
Redirect permanent / &#91;URL=http://newdomain.com/&#93;http://newdomain.com/&#91;/URL&#93;



or (it should act the same as above):

code:
RedirectPermanent / &#91;URL=http://newdomain.com/&#93;http://newdomain.com/&#91;/URL&#93;



-----------------------------
Relevant links:

http://httpd.apache.org/docs/mod/mod_alias.html#redirect

http://httpd.apache.org/docs/mod/mod_alias.html#redirectperm

-----------------------------
Relevant threads:

Redirecting olddomain to newdomain

______________________
Emperor

(Added by: Emperor on Fri 18-Jul-2003)

« BackwardsOnwards »

Show Forum Drop Down Menu