全球主机交流论坛

标题: httpd.conf转htaccess? [打印本页]

作者: 蘑菇    时间: 2016-1-7 17:59
标题: httpd.conf转htaccess?
自己转的不能用,除了首页其他全都打不开,很奇怪,求大腿抱抱

  1. RegistrationName=Longshui Chen
  2. RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
  3. [ISAPI_Rewrite]
  4. CacheClockRate 3600
  5. RepeatLimit 32


  6. RewriteRule ^(.*)/m_([0-9]+)\.html$ $1/e/action/tv.php?id=$2

  7. RewriteRule ^(.*)/r_([0-9]+)\.html$ $1/e/action/ShowInfo.php?classid=2&id=$2

  8. RewriteRule ^(.*)/mv/1-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/e/action/ListInfo.php?classid=1&ph=1&type=$2&area=$3&year=$4&orderby=$5&page=$6&u=mv

  9. RewriteRule ^(.*)/mv/$ $1/e/action/ListInfo.php?classid=1&u=mv

  10. RewriteRule ^(.*)/tv/3-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/e/action/ListInfo.php?classid=3&ph=1&type=$2&area=$3&year=$4&orderby=$5&page=$6&u=tv

  11. RewriteRule ^(.*)/tv/$ $1/e/action/ListInfo.php?classid=3&u=tv


  12. RewriteRule ^(.*)/list/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/e/action/List.php?classid=2&ph=1&cat=$2&type=$3&area=$4&year=$5&picture=$6&page=$7

  13. RewriteRule ^/$ $1/e/action/List.php?classid=2
  14. RewriteRule ^/index.php$ $1/e/action/List.php?classid=2
  15. RewriteRule ^/index.html$ $1/e/action/List.php?classid=2

  16. RewriteRule ^(.*)/d_([0-9]+)\.html$ $1/down.php?id=$2
复制代码

作者: 蘑菇    时间: 2016-1-7 19:49
上面是httpd.conf
作者: whhuazi    时间: 2016-1-7 19:59
提示: 作者被禁止或删除 内容自动屏蔽
作者: 蘑菇    时间: 2016-1-7 20:17
whhuazi 发表于 2016-1-7 19:59
(.*) 去掉  $1/e/去掉$1 后面的$数字递减一位

就好了吧?。。。。

貌似不行啊==。元老老一份可好。。。。。
作者: 醉卧网络君莫笑    时间: 2016-1-8 01:10
规则貌似不用改吧,前面5行换成
RewriteEngine On
RewriteBase /
作者: 0x69    时间: 2016-1-8 07:46

一眼就看出哪个程序了,片源的对吧

我自己转的,不管怎样至少我这边使用正常,大神勿笑


  1. RewriteEngine On
  2. RewriteBase /
  3. RewriteRule ^m_([0-9]+).html$ /e/action/tv.php?id=$1

  4. RewriteRule ^r_([0-9]+).html$ /e/action/ShowInfo.php?classid=2&id=$1

  5. RewriteRule ^mv/1-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/action/ListInfo.php?classid=1&ph=1&type=$1&area=$2&year=$3&orderby=$4&page=$5&u=mv

  6. RewriteRule ^mv\$ /e/action/ListInfo.php?classid=1&u=mv

  7. RewriteRule ^tv/3-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/action/ListInfo.php?classid=3&ph=1&type=$1&area=$2&year=$3&orderby=$4&page=$5&u=tv

  8. RewriteRule ^tv\$ /e/action/ListInfo.php?classid=3&u=tv


  9. RewriteRule ^list/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /e/action/List.php?classid=2&ph=1&cat=$1&type=$2&area=$3&year=$4&picture=$5&page=$6

  10. RewriteRule ^$ /e/action/List.php?classid=2
  11. RewriteRule ^index.php$ /e/action/List.php?classid=2
  12. RewriteRule ^index.html$ /e/action/List.php?classid=2

  13. RewriteRule ^d_([0-9]+).html$ /down.php?id=$1
复制代码

作者: 蘑菇    时间: 2016-1-8 18:03
0x69 发表于 2016-1-8 07:46
一眼就看出哪个程序了,片源的对吧

我自己转的,不管怎样至少我这边使用正常,大神勿笑

他那个首页推荐怎么修改,我打开都是固定的网址/r.html,后台都快翻烂了也没找到
作者: 0x69    时间: 2016-1-8 18:03
蘑菇 发表于 2016-1-8 18:03
他那个首页推荐怎么修改,我打开都是固定的网址/r.html,后台都快翻烂了也没找到 ...

那就不知道了,我也就搞了下伪静态,其他还没看呢




欢迎光临 全球主机交流论坛 (https://d.168530.xyz/) Powered by Discuz! X3.4