Redirect to main domain

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

Avoid penalties for duplicate content. Also see
<a href="">How to Stay Safe from Duplicate Content by Using .htaccess and 301 Redirects</a>.

Copy this code and paste it in your HTML
  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteCond %{HTTP_HOST} !^
  4. RewriteRule (.*)$1 [R=301,L]

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.