安徽SEO顾问

毛主席说过,实践出真知(也许他老人家也许没说过...不过这些不重要)重要的是本博将持续更新,持续分享。
网络营销优化QQ交流群:436867053

未命名

RewriteEngine on

RewriteBase /



RewriteCond %{HTTP_HOST} ^qiche0.cn$ [NC] 

RewriteRule ^(.*)$ http://xxx/$1 [R=301,L]

#RewriteCond 判断访问的域名^以什么开头$以什么结尾[NC]不区分大小写

#RewriteRuleURL重写规则^以(.*)$任意字符开头或结尾 $1前面第一个括号的内容 [R=301,L]L不匹配下一个规则,这是最后一个规则。



RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(\/)?$ chuangye/index.php [L]

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+)$ chuangye/$1 [L]

#

#^(\/)?$右反斜\杠转义 括号里匹配左斜杠/问号是前面的出现1次或0次,访问真实路径域名下INdex

#

#重写规则,.代表任意字符,+代表前面的内容重复一次或多次

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(\/)?$ index.php [L]

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+)$ $1 [L]


RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(\/)?$ ad/index.php [L]

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+)$ ad/$1 [L]


XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(\/)?$ ah/index.php [L]

RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(.+)$ ah/$1 [L]

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


RewriteCond %{HTTP_HOST} ^xxx$ [NC]

RewriteRule ^(\/)?$ jmf/index.php [L]

RewriteCond %{HTTP_HOST} ^jxxx$ [NC]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.+)$ jmf/$1 [L]


发表看法

额 本文暂时没人评论 来添加一个吧

Top