this is my first post
I am running Apache/2.2.3 (Linux/SUSE) with mod_rewrite, and I am experiencing some issues with my rewrite rules.
I've the following url
- Code: Select all
http://127.0.0.1/monitor/index.php?mod=programs&opt=dtls&pid=446&filter=0&ctx=user&p=3#user
which I rewrite with php and send to the browser in this way:
- Code: Select all
http://127.0.0.1/monitor/programs-opt-dtls-pid-446-filter-0-ctx-user-p-3.html#user
in my .htaccess I've the following rewriting rule:
- Code: Select all
RewriteEngine On
RewriteBase /monitor/
RewriteRule ^([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)\.html$ index.php?mod=$1&$2=$3&$4=$5&$6=$7&$8=$9&$10=$11 [L,QSA,NS,NC]
The fact is that it seems that mod_rewrite is having some problems in interpreting this rule the right way.
Everything works well up to parameter $9.
Parameter $10 and $11 are not being recognized, and mod_rewrite is rewriting them simply appending 0 and 1 to parameter $1.
I hope I've been clear enough. Hope that someone can help
Thanks