mod_rewrite - Don't get a second rule work
Posted
by poru
on Stack Overflow
See other posts from Stack Overflow
or by poru
Published on 2010-05-12T13:09:16Z
Indexed on
2010/05/12
13:34 UTC
Read the original article
Hit count: 139
I want to have a url like this:
domain.com/css/site.css?test=234
Rule:
RewriteEngine On
RewriteRule ^([a-z]+)/$ $1.php
RewriteRule ^css/([a-zA-Z0-9]+).css?count=(.*)$ css.php?f=$1&test=$2
But I get every time a 404: Not found (site.css)
If I have a rule like that it works, just without getting the $_GET-Variable:
RewriteEngine On
RewriteRule ^([a-z]+)/$ $1.php
RewriteRule ^css/([a-zA-Z0-9]+).css$ css.php?f=$1
© Stack Overflow or respective owner