0
我有以下規則.htaccess文件:htaccess減少許多行到一個?
RewriteRule ^(boards)/(.+)/(.+)/(.+)/(.+)/([^./+])/?$ index.php?param0=$1¶m1=$2¶m2=$3¶m3=$4¶m4=$5¶m5=$6 [NC]
RewriteRule ^(boards)/(.+)/(.+)/(.+)/([^./]+)/?$ index.php?param0=$1¶m1=$2¶m2=$3¶m3=$4¶m4=$5 [NC]
RewriteRule ^(boards)/(.+)/(.+)/([^./]+)/?$ index.php?param0=$1¶m1=$2¶m2=$3¶m3=$4 [NC]
RewriteRule ^(boards)/(.+)/([^./]+)/?$ index.php?param0=$1¶m1=$2¶m2=$3 [NC]
RewriteRule ^(boards)/([^./]+)/?$ index.php?param0=$1¶m1=$2 [NC]
RewriteRule ^(boards)/?$ index.php?param0=$1 [NC]
我的問題:有可能結合這些逼到一個規則?這是很煩人保持這樣的... ...
這是一個相當不錯的主意〜我會試試看:) – foaly
我用這個現在: 重寫規則^(404個|板)/.*$的index.php模塊= $ 1 [NC] 所有? '模塊的我在括號裏。 – foaly