×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Apache
Posted by: Andreza Cristina Mello
Added: Oct 4, 2014 9:17 AM
Modified: Oct 5, 2014 7:35 AM
Views: 51
Tags: no tags
  1. RewriteCond %{REQUEST_URI} !^/robots\.txt$
  2. RewriteCond %{HTTP_HOST} \.([a-z-]+\.[a-z]{2,6})$ [NC]
  3. RewriteRule ^/(.*)$ http://%1/$1 [R=301,L]
Comments disabled