.htaccess - htaccess reduce many lines to one? -
i have .htaccess file following rules:
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] my question: possible combine 1 rule? it's pretty annoying maintain this...
if can modify index.php, can this:
rewriterule ^boards/(.*) index.php?url=$1 [nc] and parse $_get['url'] inside index.php.
even better, can do
rewriterule ^boards/.* index.php [nc] and parse $_server['request_uri'] in index.php.
Comments
Post a Comment