phpcms无奈关上手机端是由于伪动态规定不克不及被辨认,其处理方法是正在Linux零碎中,将“RewriteEngine On RewriteCond%{HTTP_HOST} ^域名.com$ [NC]...”代码保留为“.htaccess”。
phpcms手机端伪动态规定,手机端打没有开的处理办法
成绩形容:phpcms零碎换了空间之后,手机端内页无奈关上
成绩缘由:phpcms的手机版用的是伪动态,换到其它效劳商之后,效劳器环境纷歧样,招致伪动态规定不克不及被辨认
保举:《phpcms教程》
处理计划:这里提供 .htaccess 以及 web.config 两个伪动态规定供各人应用
Linux零碎,将如下代码保留为 .htaccess
RewriteEngine On RewriteCond %{HTTP_HOST} ^域名.com$ [NC] RewriteRule ^(.*)$ http://www.域名.com/$1 [L,R=301] RewriteRule ^(.*)content-([0-9]+)-([0-9]+)-([0-9]+)\.html(.*)$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4 RewriteRule ^(.*)show-([0-9]+)-([0-9]+)-([0-9]+).html(.*)$ $1/index\.php\?m=content&c=index&a=show&catid=$2&id=$3&page=$4 RewriteRule ^(.*)list-([0-9]+)-([0-9]+).html(.*)$ $1/index\.php\?m=content&c=index&a=lists&catid=$2&page=$3
Windows零碎,将如下代码保留为 web.config
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Index" stopProcessing="true"> <match url="^content-([0-9]+)-([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="index.php?m=content&c=index&a=show&catid={R:1}&id={R:2}&page={R:3}" /> </rule> <rule name="Show" stopProcessing="true"> <match url="^show-([0-9]+)-([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="index.php?m=content&c=index&a=show&catid={R:1}&id={R:2}&page={R:3}" /> </rule> <rule name="list" stopProcessing="true"> <match url="^list-([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="index.php?m=content&c=index&a=lists&catid={R:1}&page={R:2}" /> </rule> <rule name="wapshow" stopProcessing="true"> <match url="^wapshow-([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="index.php?m=wap&siteid=1&a=show&catid={R:1}&typeid=&id={R:2}" /> </rule> <rule name="waplist" stopProcessing="true"> <match url="^waplist-([a-zA-Z]+)-([0-9]+).html" /> <action type="Rewrite" url="index.php?m=wap&c=index&a={R:1}&catid={R:2}" /> </rule> </rules> </rewrite> <httpErrors errorMode="DetailedLocalOnly"> <clear /> </httpErrors> </system.webServer> </configuration>
以上就是phpcms无奈关上手机端怎样办的具体内容,更多请存眷资源魔其它相干文章!
标签: phpcms phpcms教程 phpcms技巧 php问题解决
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!