伪静态规则 httpd.ini转成.htaccess 源文件如下
[ISAPI_Rewrite]#3600=1hourCacheClockRate3600RepeatLimit32#DISCUZ论坛+UCHomeRewrite规则,针对...
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.htm)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.htm\?*(.*)$ $1/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.htm\?*(.*)$ $1/tag\.php\?name=$2&$3
RewriteRule ^/(space|network)-(.+)\.htm$ /$1\.php\?rewrite=$2 [L]
RewriteRule ^/(space|network)\.htm$ /$1\.php [L]
RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]
刚才发现,还有下面的代码
# HDWIKI Rewrite规则,针对可操作IIS用户
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/baike/(.*)\.(htm|htm|shtm|tpl|asp|jsp|php|do)$ /baike/index\.php\?$1
# phpcms Rewrite规则,针对可操作IIS用户
RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?nick=$2&iid=$3
RewriteRule ^(.*)/gotoitem-(.*)\.htm$ $1/gotoitem\.php\?iid=$2
RewriteRule ^(.*)/gotoshop-(.*)\.htm$ $1/gotoshop\.php\?nick=$2
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.htm$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)\.htm$ $1.php 展开
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# DISCUZ论坛+UCHome Rewrite规则,针对可操作IIS用户,
# 此默认规则只针对UCHome程序放在根目录中用独立域名访问的,论坛也可以直接用.
RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.htm)\?*(.*)$ $1/archiver/index\.php\?$2&$4
RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.htm\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.htm\?*(.*)$ $1/space\.php\?$2=$3&$4
RewriteRule ^(.*)/tag-(.+)\.htm\?*(.*)$ $1/tag\.php\?name=$2&$3
RewriteRule ^/(space|network)-(.+)\.htm$ /$1\.php\?rewrite=$2 [L]
RewriteRule ^/(space|network)\.htm$ /$1\.php [L]
RewriteRule ^/([0-9]+)$ /space\.php\?uid=$1 [L]
刚才发现,还有下面的代码
# HDWIKI Rewrite规则,针对可操作IIS用户
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/baike/(.*)\.(htm|htm|shtm|tpl|asp|jsp|php|do)$ /baike/index\.php\?$1
# phpcms Rewrite规则,针对可操作IIS用户
RewriteRule ^(.*)/view-(.*)-(.*)\.htm$ $1/view\.php\?nick=$2&iid=$3
RewriteRule ^(.*)/gotoitem-(.*)\.htm$ $1/gotoitem\.php\?iid=$2
RewriteRule ^(.*)/gotoshop-(.*)\.htm$ $1/gotoshop\.php\?nick=$2
RewriteRule ^(.*)/list-([0-9]+)-([0-9]+)\.htm$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)\.htm$ $1.php 展开
2个回答
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询