杰奇1.7全站伪静态设置

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

杰奇1.7全站伪静态设置


示范案例请参照

请把以下内容保存为 httpd.ini

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
#RewriteRule ^(.*)/index.html$ /index\.php
#RewriteRule ^(.*)/catalog/([0-9]+)-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
#RewriteRule ^(.*)/book/([0-9]+)\.html$ $1/modules/article/articleinfo\.php\?id=$2 [L]

RewriteRule ^/index\.html$ /index\.php [L]
RewriteRule ^(.*)/search\.html$ $1/modules/article/search\.php [L]
RewriteRule ^(.*)/book\.html$ $1/modules/article/index\.php [L]
RewriteRule ^(.*)/register\.html$ $1/register\.php [L]
RewriteRule ^(.*)/login\.html$ $1/login\.php [L]
RewriteRule ^(.*)/note.html$ $1/modules/note/index\.php [L]
RewriteRule ^(.*)/vote.html$ $1/modules/vote/index\.php [L]
RewriteRule ^(.*)/book/([0-9]+)\.html$ $1/modules/article/articleinfo\.php\?id=$2 [L]
RewriteRule ^(.*)/full\.html$ $1/modules/article/index\.php\?fullflag=1 [L]
RewriteRule ^(.*)/serial\.html$ $1/modules/article/index\.php\?fullflag=0 [L]
RewriteRule ^(.*)/initial/0\.html$ $1/modules/article/index\.php\?initial=~ [L]
RewriteRule ^(.*)/initial/0-([0-9]+)\.html$ $1/modules/article/index\.php\?initial=~&page=$2 [L]
RewriteRule ^(.*)/initial/([1A-Z])\.html$ $1/modules/article/articlelist\.php\?initial=$2page=$3 [L]
RewriteRule ^(.*)/initial/([1A-Z])-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?initial=$2&page=$3 [L]
RewriteRule ^(.*)/catalog/([0-9]+)-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
RewriteRule ^(.*)/catalog/([0-9]+)/index\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
RewriteRule ^(.*)/catalog/-([0-9]+)\.html$ $1/modules/article/articlelist\.php\?class=$2&page=$3 [L]
RewriteRule ^(.*)/catalog/([a-zA-Z0-9]+)\.html$ $1/modules/article/articlelist.php?class=$2 [L]
RewriteRule ^(.*)/fullflag/([0-9]+)-([0-9]+)\.html$ $1/modules/article/index\.php\?fullflag=$2&page=$3 [L]
RewriteRule ^(.*)/toplist/([a-z]+)-([0-9]+)\.html$ $1/modules/article/toplist\.php\?sort=$2&page=$3 [L]
RewriteRule ^(.*)/list/([0-9]+)\.html$ $1/modules/article/reader\.php\?aid=$2 [L]
RewriteRule ^(.*)/bookreader/([0-9]+)-([0-9]+)\.html$ $1/modules/article/reader\.php\?aid=$2&cid=$3
RewriteRule ^(.*)/bookreader/vol-([0-9]+)-([0-9]+)\.html$ modules/article/showvolume.php?aid=$1&vid=$2 [L]
RewriteRule ^(.*)/addbookcase-([0-9]+)-([0-9]+)\.html$ $1/modules/article/addbookcase.php?bid=$1&cid=$2 [L]
RewriteRule ^(.*)/addbookcase-([0-9]+)\.html$ $1/modules/article/addbookcase.php?bid=$1 [L]
RewriteRule ^(.*)/bookcase\.html$ $1/modules/article/bookcase.php [L]
RewriteRule ^(.*)/userdetail\.html$ $1/userdetail.php [L]
RewriteRule ^(.*)/myarticle\.html$ $1/modules/article/myarticle.php [L]
#RewriteRule ^(.*)/catalog/([0-9]+)_([0-9]+)\.html$ $1/modules/article/articlelist\.php\?

class=$2&page=$3 [L]
#RewriteRule ^(.*)/book/([0-9]+)\.html$ $1/modules/article/articleinfo\.php\?id=$2 [L]

再请在网站后台的伪静态里设置依次如下:

/book/<{$id}>.html

/catalog/<{$class}>-<{$page}>.html

/initial/<{$initial}>-<{$page}>.html

/toplist/<{$sort}>-<{$page}>.html

以上内容的前提条件为html已经做好了映射


相关文档
最新文档