全球主机交流论坛

标题: 求httpd.ini 转 .htaccess [打印本页]

作者: houzai    时间: 2012-6-26 14:26
标题: 求httpd.ini 转 .htaccess
[ISAPI_Rewrite]
RewriteRule (?!/templates)(?!/admin)(/index.*)$ /index.php$1 [I]
RewriteRule (?!/templates)(?!/admin)(/a.*)$ /index.php$1 [I]
RewriteRule ^/n([0-9]+)\.html /index\.php/news/\?action=red&nid=$1 [L]
RewriteRule ^/nc([0-9]+)\.html /index\.php/news/\?action=redc&nid=$1 [L]
RewriteRule ^/c([0-9]+)\.html /index\.php/news/\?action=list&cid=$1 [L]
RewriteRule /whois.html /index\.php/reg/\?action=whois [I]
RewriteRule /reg.html /index\.php/reg/\?s$1 [I]
RewriteRule /share.html /index\.php/share/\?action=apply [I]
RewriteRule /join.html /index\.php/share/\?action=joinus [I]
RewriteRule /user.html /index\.php/user/\?action=register [I]
RewriteRule /login.html /index\.php/user/\?action=regin [I]
RewriteRule /logout.html /index\.php/user/\?action=logout [I]
RewriteRule /ucenter.html /index\.php/user/\?s=1 [I]
RewriteRule /getpass.html /index\.php/user/\?action=getbak [I]
RewriteRule ^/taboo([a-zA-Z0-9]+)\.html /index\.php/taboo/\?action=$1 [L]
RewriteRule ^/p-([a-zA-Z0-9]+)\.html /index\.php/reg/\?action=regpre&productcode=$1 [L]
RewriteRule ^/pd-([a-zA-Z0-9]+)\.html /index\.php/reg/\?action=detail&productcode=$1 [L]
RewriteRule ^/stat-([a-zA-Z0-9]+)\.html /index\.php/stat/\?act=$1 [L]

搞定有分 谢谢啦。。。
作者: shshwzs    时间: 2012-6-26 14:27
这么多。对应个.htaccess慢慢改吧
作者: geyunbing    时间: 2012-6-26 14:28
提示: 作者被禁止或删除 内容自动屏蔽
作者: shshwzs    时间: 2012-6-26 14:29
某时间。
作者: 553993    时间: 2012-6-26 14:30
叼毛加分。。
作者: shshwzs    时间: 2012-6-26 14:31
shshwzs 发表于 2012-6-26 14:29
某时间。

比着dx的规则改改吧。
作者: houzai    时间: 2012-6-26 14:33
shshwzs 发表于 2012-6-26 14:31
比着dx的规则改改吧。

真不会。。。 帮忙弄下吧。。
作者: shshwzs    时间: 2012-6-26 14:34
houzai 发表于 2012-6-26 14:33
真不会。。。 帮忙弄下吧。。

好吧。


























我忙着找客服转域名呢。你找别人吧。
作者: 553993    时间: 2012-6-26 14:37
呢嘛MJJ
作者: hejin088    时间: 2012-6-26 14:39
MJJ
作者: houzai    时间: 2012-6-26 14:54
shshwzs 发表于 2012-6-26 14:34
好吧。

老锅 帮忙解决一下吧。。
作者: xyad    时间: 2012-6-26 15:21
  1. RewriteRule ^(?!/templates)(?!/admin)(/index.*)$ index.php$1 [L]
  2. RewriteRule ^(?!/templates)(?!/admin)(/a.*)$ index.php$1 [L]
  3. RewriteRule ^n([0-9]+).html index.php/news/?action=red&nid=$1 [L]
  4. RewriteRule ^nc([0-9]+).html index.php/news/?action=redc&nid=$1 [L]
  5. RewriteRule ^c([0-9]+).html index.php/news/?action=list&cid=$1 [L]
  6. RewriteRule ^whois.html index.php/reg/?action=whois [L]
  7. RewriteRule ^reg.html index.php/reg/?s$1 [L]
  8. RewriteRule ^share.html index.php/share/?action=apply [L]
  9. RewriteRule ^join.html index.php/share/?action=joinus [L]
  10. RewriteRule ^login.html index.php/user/?action=regin [L]
  11. RewriteRule ^logout.html index.php/user/?action=logout [L]
  12. RewriteRule ^ucenter.html index.php/user/?s=1 [L]
  13. RewriteRule ^getpass.html index.php/user/?action=getbak [L]
  14. RewriteRule ^taboo([a-zA-Z0-9]+).html index.php/taboo/?action=$1 [L]
  15. RewriteRule ^p-([a-zA-Z0-9]+).html index.php/reg/?action=regpre&productcode=$1 [L]
  16. RewriteRule ^pd-([a-zA-Z0-9]+).html index.php/reg/?action=detail&productcode=$1 [L]
  17. RewriteRule ^stat-([a-zA-Z0-9]+).html index.php/stat/?act=$1 [L]
复制代码





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