.htaccess - htaccess reduce many lines to one? -


i have .htaccess file following rules:

rewriterule ^(boards)/(.+)/(.+)/(.+)/(.+)/([^./+])/?$ index.php?param0=$1&param1=$2&param2=$3&param3=$4&param4=$5&param5=$6 [nc]  rewriterule ^(boards)/(.+)/(.+)/(.+)/([^./]+)/?$ index.php?param0=$1&param1=$2&param2=$3&param3=$4&param4=$5 [nc]  rewriterule ^(boards)/(.+)/(.+)/([^./]+)/?$ index.php?param0=$1&param1=$2&param2=$3&param3=$4 [nc]  rewriterule ^(boards)/(.+)/([^./]+)/?$ index.php?param0=$1&param1=$2&param2=$3 [nc]  rewriterule ^(boards)/([^./]+)/?$ index.php?param0=$1&param1=$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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -