httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JimRaynor <>
Subject [users@httpd] mod_rewrite behaving differently on different apache servers. What to do?
Date Mon, 03 Nov 2008 13:09:15 GMT

As part of SEO optimization, I use this code in my .htaccess file :

RewriteEngine On
RewriteRule ^some/(.*)/(.*).html$ some.php?&reqa=$1&reqb=$2

This code should rewrite this link: 


into this: 


I tried this on several apache servers. On some it works perfectly. On some
it doesn't work at all. And on some it rewrites first part of the link, but
not query string (part after ? ) . How to configure Apache for this to work?
Should I change something in Apache config file? Is there another piece of
code that does the same thing, but more consistently?

Thanks for reading this
View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message