全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 2304|回复: 7
打印 上一主题 下一主题

httpd.conf转htaccess?

[复制链接]
跳转到指定楼层
1#
发表于 2016-1-7 17:59:37 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
自己转的不能用,除了首页其他全都打不开,很奇怪,求大腿抱抱

  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
复制代码
8#
发表于 2016-1-8 18:03:57 | 只看该作者
蘑菇 发表于 2016-1-8 18:03
他那个首页推荐怎么修改,我打开都是固定的网址/r.html,后台都快翻烂了也没找到 ...

那就不知道了,我也就搞了下伪静态,其他还没看呢
7#
 楼主| 发表于 2016-1-8 18:03:18 | 只看该作者
0x69 发表于 2016-1-8 07:46
一眼就看出哪个程序了,片源的对吧

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

他那个首页推荐怎么修改,我打开都是固定的网址/r.html,后台都快翻烂了也没找到
6#
发表于 2016-1-8 07:46:30 | 只看该作者

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

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


  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
复制代码
5#
发表于 2016-1-8 01:10:58 | 只看该作者
规则貌似不用改吧,前面5行换成
RewriteEngine On
RewriteBase /
4#
 楼主| 发表于 2016-1-7 20:17:16 | 只看该作者
whhuazi 发表于 2016-1-7 19:59
(.*) 去掉  $1/e/去掉$1 后面的$数字递减一位

就好了吧?。。。。

貌似不行啊==。元老老一份可好。。。。。
3#
发表于 2016-1-7 19:59:55 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
2#
 楼主| 发表于 2016-1-7 19:49:35 | 只看该作者
上面是httpd.conf
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-15 00:50 , Processed in 0.063446 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表