分享

写回答

发帖

[提问] GoDaddy主机伪静态设置不了,谁帮忙转换一下httpd.ini

冬冬

发表于 2012-1-9 13:09:52 | 显示全部楼层

有没有能帮忙的,收费也可以。
回复 支持 反对

使用道具 举报

回答|共 17 个

冬冬

发表于 2012-1-12 18:04:43 | 显示全部楼层

本帖最后由 冬冬 于 2012-1-12 06:06 PM 编辑

谁能帮助我把现在的httpd.ini规则改成web.config规则,急用,帖子放了几天没人帮忙,大家出个价吧,我给钱。
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. [code][ISAPI_Rewrite]

  3. # 3600 = 1 hour
  4. CacheClockRate 3600

  5. RepeatLimit 32

  6. # Protect httpd.ini and httpd.parse.errors files
  7. # from accessing through HTTP

  8. # duoduo Rewrite规则
  9. RewriteRule ^/index\.html$ /index\.php
  10. RewriteRule ^/sitemap\.html$ /sitemap\.php
  11. RewriteRule ^/malllist\.html$ /malllist\.php
  12. RewriteRule ^/shoplist\.html$ /shoplist\.php
  13. RewriteRule ^/article\.html$ /article\.php
  14. RewriteRule ^/user/center\.html$ /user/center\.php
  15. RewriteRule ^/mall-(.*)-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2&page=$3
  16. RewriteRule ^/mall-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2
  17. RewriteRule ^/mall-(.*)\.html$ /mall\.php\?id=$1
  18. RewriteRule ^/view-(.*)-(.*)\.html$ /view\.php\?iid=$1&page=$2
  19. RewriteRule ^/view-(.*)\.html$ /view\.php\?iid=$1
  20. RewriteRule ^/malllist-(.*)-(.*)-(.*)\.html$ /malllist\.php\?catid=$1&mall=$2&page=$3
  21. RewriteRule ^/article_list-(.*)-(.*)\.html$ /article_list\.php\?cid=$1&page=$2
  22. RewriteRule ^/article_list-(.*)\.html$ /article_list\.php\?cid=$1
  23. RewriteRule ^/read-(.*)\.html$ /read\.php\?id=$1
  24. 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
  25. 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
  26. 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
  27. RewriteRule ^/shoplist-(.*)\.html$ /shoplist\.php\?cid=$1
  28. RewriteRule ^/shop-(.*)\.html$ /shop\.php\?nick=$1
  29. RewriteRule ^/list-(.*)\.html$ /list\.php\?cid=$1
  30. RewriteRule ^/list\.html$ /list\.php
  31. RewriteRule ^/huangou-(.*)\.html$ /huangou\.php\?id=$1
  32. RewriteRule ^/huan-(.*)-(.*)\.html$ /huan\.php\?keyword=$1&page=$2
  33. RewriteRule ^/huan\.html$ /huan\.php
  34. RewriteRule ^/coupons-(.*)-(.*)\.html$ /coupons\.php\?cid=$1&page=$2
  35. RewriteRule ^/coupons\.html$ /coupons\.php
  36. RewriteRule ^/cuxiao-(.*)\.html$ /cuxiao\.php\?id=$1
  37. RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5
  38. RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&page=$4
  39. RewriteRule ^/tg-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3
  40. RewriteRule ^/tg-(.*)\.html$ /tg\.php\?city_id=$1
  41. RewriteRule ^/tg\.html$ /tg\.php
  42. RewriteRule ^/tgview-(.*)\.html$ /tgview\.php\?id=$1
复制代码
回复 支持 反对

使用道具 举报

冬冬

发表于 2012-1-9 10:06:15 | 显示全部楼层

teafaery 发表于 2012-1-9 09:44 AM
gd主机是可以设置的,你是win主机吗

我是win主机,请问怎么设置?
RAKSmart
回复 支持 反对

使用道具 举报

冬冬

发表于 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 | 显示全部楼层

你的是discuz什么版本的
回复 支持 反对

使用道具 举报

冬冬

发表于 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}&amp;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}&amp;mall={R:2}&amp;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}&amp;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}&amp;start_price={R:2}&amp;end_price={R:3}&amp;sort={R:4}&amp;area={R:5}&amp;guarantee={R:6}&amp;list={R:7}&amp;q={R:8}&amp;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}&amp;start_price={R:2}&amp;end_price={R:3}&amp;sort={R:4}&amp;area={R:5}&amp;guarantee={R:6}&amp;list={R:7}&amp;q={R:8}&amp;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}&amp;startlevel={R:2}&amp;endlevel={R:3}&amp;area={R:4}&amp;px={R:5}&amp;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 | 显示全部楼层

虽然看不明白,帮顶上去,待高人发现,,,解决
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则