Created
January 10, 2019 13:48
-
-
Save Ginnw2/32a0fe8966507d0b9966ead4605cfb78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC] | |
RewriteRule ^([^/]+) $1 [L] | |
RewriteCond %{HTTP_HOST} ^site\.com | |
RewriteRule ^(.*)$ http://site.org/$1 [R=301,L] | |
RewriteCond %{HTTP_HOST} ^www.site\.com | |
RewriteRule ^(.*)$ http://site.org/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment