Forum Moderators: phranque
i've been using mod_rewrite for a while now on my own apache server on a windows machine. i just recently tried to implement what i've done using a hosting service running apache on linux and i have a peculiar problem.
when it executes the rewrite rule, it actually changes what the address bar says. this was not happening to me when i did it using my own server. i'm kinda dumbfounded and wondering if anyone knows what the problem is.
i'm thinking it might have something to do with other apache mods that are installed. for example, i get a sbox error when i try typing in a folder that doesn't exist. ordinarily my rewrite would kick in and open a php script that would redirect the request to another page.
that would be great if anyone could help me out with this!
thanks,
steve
Yeah, it sounds like the host is 'layering' an external redirect on top of whatever you did.
Try using the Server Headers Checker [webmasterworld.com], and see where the redirect is taking place.
Jim
Follow the URL given in the 302 response, and keep following through any other 301 or 302 responses - you are tracking down the path that any browser would go through to get to your page.
See Server Response codes: [w3.org...]
Jim
steve
Lots of threads around here on hosting recommendations [google.com], but I try to make it a habit not to play favorites. :)
Jim