Hi folks, I've got the following problem: In my apache config I have the followin lines to redirect all requests to the ssl port, which is working fine: Besides this I got a local .htaccess file in one folder with some rewrite stuff for one application: But anyhow these both do not work together. The content of the .htaccess stuff overrules the ssl rewrite thing so that it seems to get ignored. Adding these lines on top of the .htaccess does not help either. Any ideas how to solve this?
The problem is the L flag (see http://httpd.apache.org/docs/2.2/rewrite/rewrite_flags.html ): "The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed."
Hmm but if I reomove the L-Flag from the ssl redirect thing, and only place these two rewrite rules to the .htaccess file, also removing the L-Flags, the ssl redirect does not work at all. Any other ideas? EDIT: Ah got it working... if changing the order to at first rewrite and then redirect it works fine. I also prependen the inverted port rewrite cond, so i can place the L Flag again in the matching case.