screamfine
05 Oct 2005, 03:34 AM
Hi!
I have an URL like this:
http://www.mydomain.com/index.php?_id=just-a-test
I want to rewrite this into the following:
http://www.mydomain.com/just-a-test.html
My .htaccess file looks like this:
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:
http://www.mydomain.com/index.php?_id=just-a-test
becomes:
http://www.mydomain.com/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! :private:
Thank You very much!
P.S. My Apache version is: Apache/2.0.50 (Linux/SUSE).
I have an URL like this:
http://www.mydomain.com/index.php?_id=just-a-test
I want to rewrite this into the following:
http://www.mydomain.com/just-a-test.html
My .htaccess file looks like this:
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:
http://www.mydomain.com/index.php?_id=just-a-test
becomes:
http://www.mydomain.com/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! :private:
Thank You very much!
P.S. My Apache version is: Apache/2.0.50 (Linux/SUSE).