Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite behaving differently on different apache servers.

Status
Not open for further replies.

JimRaynor

Programmer
Nov 3, 2008
1
YU
As part of SEO optimization, I use this code in my .htaccess file :
Code:
RewriteEngine On
RewriteRule ^some/(.*)/(.*).html$ some.php?&reqa=$1&reqb=$2

This code should rewrite this link:

some/valuea/valueb.html

into this:

some.php?&reqa=valuea&reqb=valueb

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
 
While not trying to insult anyone, have you verified that mod_rewrite is installed and loaded by the configurations?

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top