[提问]
请高手帮忙改写一下Windows主机伪静态!!!
|
|
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# haodian8 Rewrite规则
RewriteRule ^(.*)jianfeishoushen/cid-([0-9]+)/sp-([0-9]+)/ep-([0-9]+)/sort-(.*)/area-(.*)/q-(.*)/liebiao-([0-9]?)/p([0-9]+)/$ $1/jianfeishoushen.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [L]
RewriteRule ^(.*)fengxiong/cid-([0-9]+)/sp-([0-9]+)/ep-([0-9]+)/sort-(.*)/area-(.*)/q-(.*)/liebiao-([0-9]?)/p([0-9]+)/$ $1/fengxiong.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [L]
RewriteRule ^(.*)miaosha/cid-([0-9]+)/sp-([0-9]+)/ep-([0-9]+)/sort-(.*)/area-(.*)/q-(.*)/liebiao-([0-9]?)/p([0-9]+)/$ $1/miaosha.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [L]
RewriteRule ^(.*)remai/cid-([0-9]+)/sp-([0-9]+)/ep-([0-9]+)/sort-(.*)/area-(.*)/q-(.*)/liebiao-([0-9]?)/p([0-9]+)/$ $1/remai.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [L]
RewriteRule ^(.*)search/cid-([0-9]+)/sp-([0-9]+)/ep-([0-9]+)/sort-(.*)/area-(.*)/q-(.*)/liebiao-([0-9]?)/p([0-9]+)/$ $1/search.php\?cid=$2&sp=$3&ep=$4&sort=$5&area=$6&q=$7&liebiao=$8&page=$9 [L]
RewriteRule ^(.*)view/product(.*)/$ $1/view.php\?&num_iid=$2 [L]
RewriteRule ^(.*)remai/c([0-9]+)/p([0-9]+)/$ $1/remai.php\?cid=$2&page=$3 [L]
RewriteRule ^(.*)huangguandianpu/c([0-9]+)/p([0-9]+)/$ $1/huangguandianpu.php\?cid=$2&page=$3 [L]
RewriteRule ^(.*)haoping100/c([0-9]+)/p([0-9]+)/$ $1/haoping100.php\?cid=$2&page=$3 [L]
RewriteRule ^(.*)shopmall/c([0-9]+)/p([0-9]+)/$ $1/shopmall.php\?cid=$2&page=$3 [L]
RewriteRule ^(.*)shoucangbang/c([0-9]+)/p([0-9]+)/$ $1/shoucangbang.php\?cid=$2&page=$3 [L]
RewriteRule ^(.*)jianfeishoushen/p([0-9]+)/$ $1/jianfeishoushen.php\?page=$2 [L]
RewriteRule ^(.*)fengxiong/p([0-9]+)/$ $1/fengxiong.php\?page=$2 [L]
RewriteRule ^(.*)miaosha/p([0-9]+)/$ $1/miaosha.php\?page=$2 [L]
RewriteRule ^(.*)search-(.*)/c([0-9]+)/p([0-9]+)/$ $1/search.php\?q=$2&cid=$3&page=$4 [L]
RewriteRule ^(.*)shop/(.*)/p([0-9]+)/$ $1/shop.php\?nick=$2&page=$3 [L]
RewriteRule ^(.*)group/topic/([0-9]+)/$ $1/grouptopic.php\?id=$2 [L]
RewriteRule ^(.*)Member/([0-9]+)/$ $1/groupmember.php\?id=$2 [L]
RewriteRule ^(.*)group/list/([0-9]+)-?([0-9]*)-?([0-9]*)/$ $1/grouplist.php\?pid=$2&cid=$3&page=$4 [L]
本是新手,请高手帮忙!!! |
|
|
|
|
|
|
|
|
|
|
btg678
发表于 2011-1-9 21:35:29
|
显示全部楼层
|
本人QQ:411131890 邮箱:btg678@163.com 请高手帮忙。 |
|
|
|
|
|
|
|
|
|
|
太折腾
发表于 2011-1-9 22:20:22
|
显示全部楼层
用web.config 处理
由于没有看明白你要如何,只能说这么多了 |
|
|
|
|
|
|
|
|
|
|
btg678
发表于 2011-1-10 14:34:06
|
显示全部楼层
|
网页精品导航部份无法显示,报404错误。问过说是我的伪表态规则问题,我又不懂,请高手帮忙。http://www.add188.com/huangguandianpu/c27/p1/ |
|
|
|
|
|
|
|
|
|
|
太折腾
发表于 2011-1-10 15:56:20
|
显示全部楼层
由于你是win主机,所以可以用web.config处理.
我在win主机下对php站点进行操作成功(可能有些其它地方会受影响)
用了这个方法后,404等都要在这里处理
下面是个范本:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
//----------------------开始一条转义---------
<rule name="Imported Rule 1">
<match url="^plus/view-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="plus/view.php?aid={R:1}" appendQueryString="false" />
</rule>
//------------------------结束--------------------
//在这里加入你自己的规则
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration> |
评分
-
查看全部评分
|
|
|
|
|
|
|
|
|
|
btg678
发表于 2011-1-10 18:13:17
|
显示全部楼层
|
本人真的菜鸟,看不懂代码麻烦高手帮写一下可以吗?先谢谢了. |
|
|
|
|
|
|
|
|
|
|
coogle369
发表于 2011-3-12 19:05:53
|
显示全部楼层
回复 3# 的帖子
兄台 请求帮忙解决php伪静态?
小弟用的Godaddy的win主机,伪静态困扰10多天了,有劳兄台帮看下,感激不尽!
QQ:602723632 |
|
|
|
|
|
|
|
|