linux平台的php伪静态规则转换为windows2003 iis 6.0支持的伪静态规则 50
我这有个linux用的伪静态规则,但服务商是windowsiis的,如何进行文件转换呢?RewriteEngineonRewriteRule^/$index.phpRew...
我这有个linux用的伪静态规则,但服务商是windows iis的,如何进行文件转换呢?
RewriteEngine on
RewriteRule ^/$ index.php
RewriteRule ^(index).html$ index.php
RewriteRule ^(about)_(\S+)_(\S+).html$ about.php?pid=$2&bid=$3
RewriteRule ^(about)_(\S+).html$ about.php?pid=$2
RewriteRule ^(news).html$ news.php
RewriteRule ^(news)_(\S+)_(\S+)_(\S+)\.html$ news.php?pid=$2&bid=$3&page=$4
RewriteRule ^(news)_(\S+)_(\S+)\.html$ news.php?pid=$2&bid=$3
RewriteRule ^(news)_(\S+)\.html$ news.php?pid=$2
RewriteRule ^(book).html$ book.php
RewriteRule ^(book)_(\S+)_(\S+)_(\S+)\.html$ book.php?pid=$2&bid=$3&page=$4
RewriteRule ^(book)_(\S+)_(\S+)\.html$ book.php?pid=$2&bid=$3
RewriteRule ^(book)_(\S+)\.html$ book.php?pid=$2
RewriteRule ^(download).html$ download.php
RewriteRule ^(download)_(\S+)_(\S+)_(\S+)\.html$ download.php?pid=$2&bid=$3&page=$4
RewriteRule ^(download)_(\S+)_(\S+)\.html$ download.php?pid=$2&bid=$3
RewriteRule ^(download)_(\S+)\.html$ download.php?pid=$2
RewriteRule ^(case).html$ case.php
RewriteRule ^(case)_(\S+)_(\S+)_(\S+)\.html$ case.php?pid=$2&bid=$3&page=$4
RewriteRule ^(case)_(\S+)_(\S+)\.html$ case.php?pid=$2&bid=$3
RewriteRule ^(case)_(\S+)\.html$ case.php?pid=$2
RewriteRule ^(show)_(\S+)\.html$ show.php?id=$2
RewriteRule ^(bookshow)_(\S+)\.html$ bookshow.php?id=$2
这是linux伪静态的源文件,windows的要改成什么样呢?我试过把抬头的
RewriteEngine on
替换成windows中httpd.ini的书写格式
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
但上传到服务商空间中发现还是无法运行,是不是具体内容需要一定的修改呢?服务商已确定支持PHP和伪静态,那么具体需要如何更改呢?不胜感激 展开
RewriteEngine on
RewriteRule ^/$ index.php
RewriteRule ^(index).html$ index.php
RewriteRule ^(about)_(\S+)_(\S+).html$ about.php?pid=$2&bid=$3
RewriteRule ^(about)_(\S+).html$ about.php?pid=$2
RewriteRule ^(news).html$ news.php
RewriteRule ^(news)_(\S+)_(\S+)_(\S+)\.html$ news.php?pid=$2&bid=$3&page=$4
RewriteRule ^(news)_(\S+)_(\S+)\.html$ news.php?pid=$2&bid=$3
RewriteRule ^(news)_(\S+)\.html$ news.php?pid=$2
RewriteRule ^(book).html$ book.php
RewriteRule ^(book)_(\S+)_(\S+)_(\S+)\.html$ book.php?pid=$2&bid=$3&page=$4
RewriteRule ^(book)_(\S+)_(\S+)\.html$ book.php?pid=$2&bid=$3
RewriteRule ^(book)_(\S+)\.html$ book.php?pid=$2
RewriteRule ^(download).html$ download.php
RewriteRule ^(download)_(\S+)_(\S+)_(\S+)\.html$ download.php?pid=$2&bid=$3&page=$4
RewriteRule ^(download)_(\S+)_(\S+)\.html$ download.php?pid=$2&bid=$3
RewriteRule ^(download)_(\S+)\.html$ download.php?pid=$2
RewriteRule ^(case).html$ case.php
RewriteRule ^(case)_(\S+)_(\S+)_(\S+)\.html$ case.php?pid=$2&bid=$3&page=$4
RewriteRule ^(case)_(\S+)_(\S+)\.html$ case.php?pid=$2&bid=$3
RewriteRule ^(case)_(\S+)\.html$ case.php?pid=$2
RewriteRule ^(show)_(\S+)\.html$ show.php?id=$2
RewriteRule ^(bookshow)_(\S+)\.html$ bookshow.php?id=$2
这是linux伪静态的源文件,windows的要改成什么样呢?我试过把抬头的
RewriteEngine on
替换成windows中httpd.ini的书写格式
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
但上传到服务商空间中发现还是无法运行,是不是具体内容需要一定的修改呢?服务商已确定支持PHP和伪静态,那么具体需要如何更改呢?不胜感激 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏50(财富值+成长值)
1个回答
展开全部
你和服务商商讨下啊,windows下伪静态好像没这么复杂的
更多追问追答
追问
主要服务商和写代码的是两拨人,服务商不提供linux平台,写代码的说不会弄Windows的伪静态
追答
这.........纠结,写代码的和服务器管理员应该都会得啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询