标题:
[提问]
环境nginx+apache,htaccess不能正常跳转
[打印本页]
作者:
a529400
时间:
2016-12-16 00:19
标题:
环境nginx+apache,htaccess不能正常跳转
单独apache环境能正常跳转,但是使用nginx+apache双环境之后不能正常跳转,请问下各位大大。该怎样处理啊?
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos|UCBrowser|QQBrowser|wap" [NC]
RewriteRule ^$ http://手机网站/ [R=301,L]
RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|opera mobile|palmos|webos|UCBrowser|QQBrowser|wap" [NC]
RewriteRule ^m/([0-9]+)\.html$ http://手机网站/m/$1.html [R=301,L]
</IfModule>
复制代码
欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/)
Powered by Discuz! 7.2