0
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-zA-Z0-9_-]+)$ index.php/$1 [L] RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php/$1/$2 [L] RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php/$1/$2/$3 [L] RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ index.php/$1/$2/$3/$4 [L]
你可以看到我的代码..我想知道的.htaccess规则
$ 1/$ 2/$ 3/$ 4。(现在)
$ 1/$ 2/$ 3/$ 4/$ 5〜$无限的(我想)
对不起我的英文不好..
你懂吗?
我用这个代码,我得到500错误 – Notice 2012-07-10 23:16:20
对不起,第一个'/'是在错误的地方,现在试试吧。还要确保你有其余的条件在上面(只替换规则) – 2012-07-10 23:19:51
感谢你我找到了一种方法/ RewriteRule ^(。*)$ index.php/$ 1 [L] / – Notice 2012-07-10 23:20:43