apache 环境的伪静态,复制保存根目录 .htaccess 文件里
RewriteEngine On
RewriteBase /
# 静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list-([0-9]+)-([0-9]+)\.html$ index\.php\?c=list&sortid=$1&page=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list-high-([0-9]+)-([0-9]+)\.html$ index\.php\?c=list&type=high&sortid=$1&page=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^user-([0-9]+).html$ index\.php\?c=user&id=$1&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-([0-9]+).html$ index\.php\?c=forum&id=$1&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^user-([0-9]+)-([0-9]+).html$ index\.php\?c=user&id=$1&page=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^center-([0-9]+).html$ index\.php\?c=center&uid=$1&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^center-([0-9]+)-([0-9]+).html$ index\.php\?c=center&uid=$1&page=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^app-([0-9a-zA-Z_]+)-([0-9a-zA-Z_]+)\.html$ index\.php?c=app&a=$1:$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^read-([0-9]+)-([0-9]+)\.html$ index\.php\?c=read&id=$1&page=$2&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-zA-Z][0-9a-zA-Z_]+)\.html$ index\.php\?c=$1&%1 [L]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)\.hst$ - [F]
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^logs/(.*)$ - [F]
盟主:
好的 。我试试
简单就是美:
再 后台实验室>伪静态>开启伪静态按钮 就好
盟主:
还是不行
简单就是美:
确定 环境是 apache 吗?
简单就是美:
一级目录吧
盟主:
别的模板我是的都可以
简单就是美:
是动态地址吗?别的模板。可能是动态,一会我还回去吧。。