用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1260|回复: 1
收起左侧

[讨论/交流] httpd.ini转.htaccess,有会转换的吗?

[复制链接]
发表于 2014-8-13 16:44:39 | 显示全部楼层 |阅读模式
配置好环境(lamp),传了程序,发现不能用,
程序生成伪静态,刚发现原来是没有.htaccess文件,只有个httpd.ini
有会规则转换的吗?我贴一下规则,哪位大大帮忙转换一下


[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32


RewriteRule        ^(.*)/user/(.*)/(.*)/(.*)$ $1/index\.php\?user&user_id=$2&q=code/$3/$4
RewriteRule        ^(.*)/user/(.*)/(.*)$ $1/index\.php\?user&user_id=$2&q=code/$3
RewriteRule        ^(.*)/user/(.*)$ $1/index\.php\?user&user_id=$2
RewriteRule        ^(.*)/u/(.*)/(.*)$ $1/index\.php\?home&user_id=$2&q=$3
RewriteRule        ^(.*)/u/(.*)$ $1/index\.php\?home&user_id=$2
RewriteRule        ^(.*)/(.*)/(.*)/index.html$ $1/index\.php\?$2&nid=$3
RewriteRule        ^(.*)/(.*)/(.*)/index(.*).html$ $1/index\.php?$2&nid=$3&page=$4
RewriteRule        ^(.*)/(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&nid=$3&article_id=$4
RewriteRule        ^(.*)/(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&nid=$3&article_id=$4&$5
RewriteRule        ^(.*)/(.*)/index.html$ $1/index\.php\?$2
RewriteRule        ^(.*)/(.*)/index(.*).html$ $1/index\.php\?$2&page=$3
RewriteRule        ^(.*)/(.*)/index(.*).html?(.*)$ $1/index\.php\?$2&page=$3&$4
RewriteRule        ^(.*)/(.*)/a(.*)_(.*).html$ $1/index\.php\?$2&article_id=$3&page=$4
RewriteRule        ^(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&article_id=$3
RewriteRule        ^(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&article_id=$3&$4

发表于 2014-8-14 19:23:38 | 显示全部楼层
你先试试  能不能新建 .htaccess  文件吧   应该可以的 既然是 lamp环境

本版积分规则