Bo-Blog博客Rewrite伪静态链接服务器配置代码

差不多就这些吧,还有就是日期的还有些错误,等以后有时间来修复一下吧~

RewriteRule ^(.*)/([0-9]+)\.htm$ $1/read\.php\?$2
RewriteRule ^(.*)/([0-9]+)_1_([0-9]+)\.htm$ $1/read\.php\?$2&part=$3
RewriteRule ^(.*)/([0-9]+)\.htm$ $1/index\.php\?go=$2
RewriteRule ^(.*)/category_([0-9]+)\.htm$ $1/index\.php\?go=category_$2
RewriteRule ^(.*)/category_([0-9]+)_([0-9]+)\.htm$ $1/index\.php\?go=category_$2&mode=$3
RewriteRule ^(.*)/category_([0-9]+)_([0-9]+)_([0-9]+)\.htm$ $1/index\.php\?go=category_$2&mode=$3&page=$4
RewriteRule ^(.*)/index_([0-9]+)_([0-9]+)\.htm$ $1/index\.php\?mode=$2&page=$3
RewriteRule ^(.*)/archive_([0-9]+)_([0-9]+)\.htm$ $1/index\.php\?go=archive&cm=$2&cy=$3
RewriteRule ^(.*)/archive_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)\.htm$ $1/index\.php\?go=archive&cm=$2&cy=$3&mode=$4&page=$5
RewriteRule ^(.*)/(.+?)\.htm$ $1/index\.php\?go=$2
RewriteRule ^(.*)/(.+?)_([0-9])_([0-9])\.htm$ $1/index\.php\?go=$2&mode=$3&page=$4
如果您觉得我的文章有帮助,请随意赞赏!

*发表评论

用QQ账号登录  请登录后发表评论