listdt=0 静态页面 nreclass=1 不生成列表页
echo $h = $empire->query("update $biaoName set showdt=0,nreinfo=1 ");
showdt =0 静态页面 nreinfo=1 不生成内容页
伪静态规则:
RewriteEngine On
ErrorDocument 404 /404.php
Rewritebase /
#信息内容页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tech/([0-9]+)/([0-9]+).shtml$ /e/action/ShowInfo.php?classid=no&id=$2 [NC,L]
#信息列表
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^listinfo-([0-9]+)-([0-9]+).html$ /e/action/ListInfo/index.php?classid=$1&page=$2 [NC,L]
#标题分类列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^infotype-([0-9]+)-([0-9]+).html$ /e/action/InfoType/index.php?ttid=$1&page=$2 [NC,L]
#TAGS信息列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(etagid[0-9]+)-([0-9]+).html$ /e/tags/index.php?tagname=$1&page=$2 [NC,L]
#评论列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^comment-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/pl/index.php?doaction=$1&classid=$2&id=$3&page=$4&myorder=$5&tempid=$6 [NC,L]
#搜索信息列表页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^search/index.shtml?keyword=(w+)$ /e/search/index.php?keyboard=$1&tbname=news&tempid=1&show=title&searchget=1 [NC,L]
#RewriteCond %{QUERY_STRING} ^(.*)$
#RewriteRule ^search/index_(d+).shtml?keyword=(w+)$ /e/search/index.php?page=$1&keyboard=$2&tbname=news&tempid=1&show=title&searchget=1 [NC,L]
#栏目自定义伪静态 默认添加.html 后缀更多的后缀自行添加
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(d/|e/|html/|images/|s/|search/|skin/|t/|ad/|ebak/|web/|m2/|api)
RewriteRule ^([0-9a-zA-Z-/]+)/(|index.shtml|index_[0-9]+.shtml)$ /e/action/list.php?classid=$1&page=$2 [NC,L]
#内容自定义伪静态 默认添加.html 后缀更多的后缀自行添加
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(d/|e/|html/|images/|s/|search/|skin/|t/|ad|ebak/|web/|m2/|api)
RewriteRule ^([0-9a-zA-Z-/]+)/([0-9a-zA-Z]+)([_0-9]*).shtml$ /e/action/show.php?classid=$1&id=$2&page=$3 [NC,L]