mod_rewrite freaks ... I need your help!

Hi!

I have an URL like this:

mydomain/index.php?_id=just-a-test

I want to rewrite this into the following:

mydomain/just-a-test.html

My .htaccess file looks like this:

Code:
php_flag allow_call_time_pass_reference on
RewriteEngine On
RewriteBase /
RewriteRule ^([^-]+)-(.+)\.html$ index.php?_id=$1&_news=$2 [L] 
RewriteRule ^(.+)\.html$ index.php?_id=$1 [L]
The problem is:

mydomain/index.php?_id=just-a-test
becomes:
mydomain/das.html ("a-test" is missing...)

All hyphens and parameters get lost ... what am I doing wrong? :roll:

I'm looking forward to your replies!

Thank You very much!

P.S. My Apache version is: Apache/2.0.50 (Linux/SUSE).

 

 

 

 

Top