HadSky 3.x 伪静态规则

puyuetian 乐天 关注 九级站长 创始人
发表于SEO相关版块
这里给出Apache(.htaccess)的规则,其他的请参考这个自行编写:

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list-([0-9]+)-([0-9]+)\.html$ index\.php\?c=list&sortid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^list-high-([0-9]+)-([0-9]+)\.html$ index\.php\?c=list&type=high&sortid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^user-([0-9]+).html$ index\.php\?c=user&id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-([0-9]+).html$ index\.php\?c=forum&id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^user-([0-9]+)-([0-9]+).html$ index\.php\?c=user&id=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^app-([0-9a-zA-Z_]+)-([0-9a-zA-Z_]+)\.html$ index\.php?c=app&a=$1:$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^read-([0-9]+)-([0-9]+)\.html$ index\.php\?c=read&id=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([0-9a-zA-Z_]+)\.html$ index\.php\?c=$1&%1

评论列表 评论
mmy421 mmy421 五级站长 VIP 3#
llih厉害厉害
共0条回复,点击查看回复
itta itta团队 三级站长 普通 2#
咋没个注释啊,不懂伪静态的没注释不会改呀emotion
共0条回复,点击查看回复
发布评论

评论: HadSky 3.x 伪静态规则

已有0次打赏
(5) 分享
分享

请保存二维码或复制链接进行分享

取消