phpok问题集锦

一、伪静态,开启伪静态后,地址显示正确,却无法读取内容。原来是规则出错,虽然表面上看规则没任何问题,很有可能是多了空格还是其他问题吧~

 

RewriteEngine  on
RewriteBase /

RewriteRule ^index\.html$                                   index.php [L] 
RewriteRule ^index-([a-z0-9])\.html$                        index.php?langid=$1 [L] 
RewriteRule ^cid-([0-9]+)\.html$                            index.php?c=list&cid=$1 [L] 
RewriteRule ^cid-([0-9]+)-([0-9]+)\.html$                   index.php?c=list&cid=$1&pageid=$2 [L] 
RewriteRule ^cs-([a-z0-9A-Z\_]+)\.html$                     index.php?c=list&cs=$1 [L] 
RewriteRule ^cs-([a-z0-9A-Z\_]+)-([0-9]+)\.html$            index.php?c=list&cs=$1&pageid=$2 [L] 
RewriteRule ^mid-([0-9]+)\.html$                            index.php?c=list&mid=$1 [L] 
RewriteRule ^mid-([0-9]+)-([0-9]+)\.html$                   index.php?c=list&mid=$1&pageid=$2 [L] 
RewriteRule ^ms-([a-z0-9A-Z\_]+)\.html$                     index.php?c=list&ms=$1 [L] 
RewriteRule ^ms-([a-z0-9A-Z\_]+)-([0-9]+)\.html$            index.php?c=list&ms=$1&pageid=$2 [L] 
RewriteRule ^c([0-9]+)\.html$                               index.php?c=msg&id=$1 [L] 
RewriteRule ^c([0-9]+)-([0-9]+)\.html$                      index.php?c=msg&id=$1&pageid=$2 [L] 
RewriteRule ^([a-z0-9A-Z\_]+)-([0-9]+)\.html$               index.php?c=msg&ts=$1&pageid=$2 [L] 
RewriteRule ^([a-z0-9A-Z\_\-]+)\.html$                      index.php?c=msg&ts=$1 [L]


二、做成英文版的时候搜索出现问题

 

进入英文后台“网站信息”管理里其他设置,找到“搜索分页数量”,添加一个数量进去即可

你可能感兴趣的:(phpok)