Created
November 23, 2011 02:37
-
-
Save hzlzh/1387753 to your computer and use it in GitHub Desktop.
Htaccess file 301
This file contains hidden or 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{QUERY_STRING} ^tag=(.+) [NC] | |
RewriteRule blog/$ http://www.xxx.com/tag/%1/? [NC,L,R=301] | |
RewriteRule blog/bid/(.*)/(.*)$ http://www.xxx.com/$2 [L,R=301] | |
RewriteCond %{HTTP_HOST} ^www.yyy.com [OR] | |
RewriteCond %{HTTP_HOST} ^yyy.com [NC] | |
RewriteRule ^(.*)$ http://www.xxx.com/ [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment