Programming

Use this method if you want to:

  • redirect your domain including all pages to another domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.rjregalado.com$ [NC]
RewriteRule ^(.*)$ http://nuremberg.rjregalado.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^rjregalado.com$
RewriteRule (.*) http://nuremberg.rjregalado.com/$1 [R=301]
  • remove www from your domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.rjregalado.com$ [NC]
RewriteRule ^(.*)$ http://rjregalado.com/$1 [R=301,L]
  • append www on your domain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^rjregalado.com$
RewriteRule (.*) http://www.rjregalado.com/$1 [R=301]

 

hope it helps