[提问]
GoDaddy主机伪静态设置不了,谁帮忙转换一下httpd.ini
|
|
冬冬
发表于 2012-1-9 13:09:52
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
冬冬
发表于 2012-1-12 18:04:43
|
显示全部楼层
本帖最后由 冬冬 于 2012-1-12 06:06 PM 编辑
谁能帮助我把现在的httpd.ini规则改成web.config规则,急用,帖子放了几天没人帮忙,大家出个价吧,我给钱。- <?xml version="1.0" encoding="UTF-8"?>
- [code][ISAPI_Rewrite]
- # 3600 = 1 hour
- CacheClockRate 3600
- RepeatLimit 32
- # Protect httpd.ini and httpd.parse.errors files
- # from accessing through HTTP
- # duoduo Rewrite规则
- RewriteRule ^/index\.html$ /index\.php
- RewriteRule ^/sitemap\.html$ /sitemap\.php
- RewriteRule ^/malllist\.html$ /malllist\.php
- RewriteRule ^/shoplist\.html$ /shoplist\.php
- RewriteRule ^/article\.html$ /article\.php
- RewriteRule ^/user/center\.html$ /user/center\.php
- RewriteRule ^/mall-(.*)-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2&page=$3
- RewriteRule ^/mall-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2
- RewriteRule ^/mall-(.*)\.html$ /mall\.php\?id=$1
- RewriteRule ^/view-(.*)-(.*)\.html$ /view\.php\?iid=$1&page=$2
- RewriteRule ^/view-(.*)\.html$ /view\.php\?iid=$1
- RewriteRule ^/malllist-(.*)-(.*)-(.*)\.html$ /malllist\.php\?catid=$1&mall=$2&page=$3
- RewriteRule ^/article_list-(.*)-(.*)\.html$ /article_list\.php\?cid=$1&page=$2
- RewriteRule ^/article_list-(.*)\.html$ /article_list\.php\?cid=$1
- RewriteRule ^/read-(.*)\.html$ /read\.php\?id=$1
- RewriteRule ^/list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /list\.php\?cid=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9
- RewriteRule ^/shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shop\.php\?nick=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9
- RewriteRule ^/shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shoplist\.php\?cid=$1&keyword=$2&start_level=$3&end_level=$4&area=$5&px=$6&cpr=$7&type=$8&page=$9
- RewriteRule ^/shoplist-(.*)\.html$ /shoplist\.php\?cid=$1
- RewriteRule ^/shop-(.*)\.html$ /shop\.php\?nick=$1
- RewriteRule ^/list-(.*)\.html$ /list\.php\?cid=$1
- RewriteRule ^/list\.html$ /list\.php
- RewriteRule ^/huangou-(.*)\.html$ /huangou\.php\?id=$1
- RewriteRule ^/huan-(.*)-(.*)\.html$ /huan\.php\?keyword=$1&page=$2
- RewriteRule ^/huan\.html$ /huan\.php
- RewriteRule ^/coupons-(.*)-(.*)\.html$ /coupons\.php\?cid=$1&page=$2
- RewriteRule ^/coupons\.html$ /coupons\.php
- RewriteRule ^/cuxiao-(.*)\.html$ /cuxiao\.php\?id=$1
- RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5
- RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&page=$4
- RewriteRule ^/tg-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3
- RewriteRule ^/tg-(.*)\.html$ /tg\.php\?city_id=$1
- RewriteRule ^/tg\.html$ /tg\.php
- RewriteRule ^/tgview-(.*)\.html$ /tgview\.php\?id=$1
复制代码 |
|
|
|
|
|
|
|
|
|
|
冬冬
发表于 2012-1-9 10:06:15
|
显示全部楼层
teafaery 发表于 2012-1-9 09:44 AM 
gd主机是可以设置的,你是win主机吗
我是win主机,请问怎么设置? |
|
|
|
|
|
|
|
|
|
|
冬冬
发表于 2012-1-9 10:07:45
|
显示全部楼层
lwbo1987 发表于 2012-1-9 09:46 AM 
win主机使用的是web.config,如果是linux系统,就是.htaccess
是的,我就是win主机,所以要设置web.config,我有httpd.ini文件但不会转换成web.config文件。 |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2012-1-9 10:11:17
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
冬冬
发表于 2012-1-9 10:24:28
|
显示全部楼层
lwbo1987 发表于 2012-1-9 10:11 AM 
你的是discuz什么版本的
我是淘宝客程序,找到了一个web.config文件,但是代码不全,以下是已经用上的代码,很正常:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="rules imported 201">
<match url="^index.html$" ignoreCase="false" />
<action type="Rewrite" url="index.php" />
</rule>
<rule name="rules imported 202">
<match url="^sitemap.html$" ignoreCase="false" />
<action type="Rewrite" url="sitemap.php" />
</rule>
<rule name="rules imported 203">
<match url="^malllist.html$" ignoreCase="false" />
<action type="Rewrite" url="malllist.php" />
</rule>
<rule name="rules imported 204">
<match url="^shoplist.html$" ignoreCase="false" />
<action type="Rewrite" url="shoplist.php" />
</rule>
<rule name="rules imported 205">
<match url="^article.html$" ignoreCase="false" />
<action type="Rewrite" url="article.php" />
</rule>
<rule name="rules imported 206">
<match url="^user/center.html$" ignoreCase="false" />
<action type="Rewrite" url="user/center.php" />
</rule>
<rule name="rules imported 207">
<match url="^mall-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="mall.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 208">
<match url="^view-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.php?iid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="rules imported 209">
<match url="^view-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="view.php?iid={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 210">
<match url="^malllist-(.*)-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="malllist.php?catid={R:1}&mall={R:2}&page={R:3}" appendQueryString="false" />
</rule>
<rule name="rules imported 211">
<match url="^article_list-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="article_list.php?cid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="rules imported 212">
<match url="^article_list-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="article_list.php?cid={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 213">
<match url="^read-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="read.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 214">
<match url="^list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="list.php?cid={R:1}&start_price={R:2}&end_price={R:3}&sort={R:4}&area={R:5}&guarantee={R:6}&list={R:7}&q={R:8}&page={R:9}" appendQueryString="false" />
</rule>
<rule name="rules imported 215">
<match url="^shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="shop.php?nick={R:1}&start_price={R:2}&end_price={R:3}&sort={R:4}&area={R:5}&guarantee={R:6}&list={R:7}&q={R:8}&page={R:9}" appendQueryString="false" />
</rule>
<rule name="rules imported 216">
<match url="^shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="shoplist.php?keyword={R:1}&startlevel={R:2}&endlevel={R:3}&area={R:4}&px={R:5}&page={R:6}" appendQueryString="false" />
</rule>
<rule name="rules imported 217">
<match url="^shoplist-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="shoplist.php?cid={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 218">
<match url="^shop-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="shop.php?nick={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 219">
<match url="^list-(.*).html$" ignoreCase="false" />
<action type="Rewrite" url="list.php?cid={R:1}" appendQueryString="false" />
</rule>
<rule name="rules imported 220">
<match url="^list.html$" ignoreCase="false" />
<action type="Rewrite" url="list.php" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
还有以下这些没有写上,我在这方面是菜鸟,所以不知道怎么添加。
RewriteRule ^/huangou-(.*)\.html$ /huangou\.php\?id=$1
RewriteRule ^/huan-(.*)-(.*)\.html$ /huan\.php\?keyword=$1&page=$2
RewriteRule ^/huan\.html$ /huan\.php
RewriteRule ^/coupons-(.*)-(.*)\.html$ /coupons\.php\?cid=$1&page=$2
RewriteRule ^/coupons\.html$ /coupons\.php
RewriteRule ^/cuxiao-(.*)\.html$ /cuxiao\.php\?id=$1
RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5
RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&page=$4
RewriteRule ^/tg-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3
RewriteRule ^/tg-(.*)\.html$ /tg\.php\?city_id=$1
RewriteRule ^/tg\.html$ /tg\.php
RewriteRule ^/tgview-(.*)\.html$ /tgview\.php\?id=$1
|
|
|
|
|
|
|
|
|
|
|
暮木娃娃
发表于 2012-1-9 10:26:17
|
显示全部楼层
冬冬 发表于 2012-1-9 10:24 AM 
我是淘宝客程序,找到了一个web.config文件,但是代码不全,以下是已经用上的代码,很正常:
代码不是很清楚。帮顶 |
|
|
|
|
|
|
|
|
|
|
lwbo1987
发表于 2012-1-9 10:31:11
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
冬冬
发表于 2012-1-9 11:07:38
|
显示全部楼层
|
整来整去还是不明白,看别人的也看不明白,有谁能帮我改改啊,谢谢! |
|
|
|
|
|
|
|
|
|
|
hujuyang
发表于 2012-1-14 10:34:05
|
显示全部楼层
|
|
|
|
|
|
|
|