apache实现手机访问www网站自动跳转到WAP站点
apache实现手机访问www网站自动跳转到WAP站点
vi /usr/local/apache2/conf/httpd.confLogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" "%{Via}i"" combinedwapCustomLog "logs/access_log" combinedwapRewriteLogLevel 9RewriteEngine OnRewriteLog "/usr/local/apache2/logs/rewrite_wap.log"<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all RewriteEngine On RewriteCond %{HTTP:Via} ^.*WAP.* RewriteRule ^(.+) http://m.abc.com</Directory>