[SOLVED] How to do a 301 redirect?

#1
I have two domains, and I want to redirect one_domain.com to two_domain.com for all requests, while preserving the URL.

How do I do this?
 

lsqtwrk

Administrator
#2
like normal apache way ?

Code:
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]
 
Top