I have a weird problem. I develop my sites on localhost and after that i distribute it server side. Most of the time this is working as expected but now notice something weird and cannot figure out what the problem is.
On the server all RewriteRule redirects but without expected queries. Something like this is working fine on localhost but not on the server:
RewriteEngine On
….
….
RewriteRule .....
EDIT: Changed entries for security reasons, sorry!
….
….
Does anybody knows what is going on? Do i miss something? Why are the queries not passed thru? Is it a server configuration? Cannot find anything about it on the internet.
Thank you for your comments.
EDIT: SOLUTION below, second comment. Has something to do with what apache handles first.
These things are nearly impossible to debug. But mod_rewrite offers one feature that you should set up to investigate this:
The
RewriteLogdirective however cannot be used from.htaccess. You need to declare it in the vhost or main server configuration. If level2is still insufficient, then try3.Otherwise I’d just would advise you to try a
RewriteBase, since you seem to match varying directory levels with your rules. Possibly repeat your rules in the subdirectories (streambutler/) again. Apaches mod_rewrite is peculiar and ignores them in the parent dir sometimes.