Alias .htaccess Redirect 301


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  1. # Redirect alias
  2. RewriteCond %{HTTP_HOST} ^www.example.net$ [OR]
  3. RewriteCond %{HTTP_HOST} ^example.net$
  4. RewriteRule ^(.*)$ http://example.com/$1 [R=301,NC,L]

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.