mod_rewrite problem
I have a set of re-write rules that work fine in a .htaccess, but I need to place them within the apache virtual host for this particular domain instead.
When I put the same rules in the virtual host, I get a 400 bad request error. Are there difference between re-write rules when used within a virtual host rather than a htaccess file?
This is what I am using:
RewriteEngine ON
RewriteRule ^(.*)/([0-9]+)/index.html$ article.php?id=$2 [L]
RewriteRule ^tools/(.*)$ getPage.php?page=tools/$1 [L]
RewriteRule ^([0-9]+)/$ article.php?id=$1 [L]
|