mod_rewrite global ssl redirect and local rewrite not working

Discussion in 'Server Operation' started by Ben, Apr 26, 2010.

  1. Ben

    Ben ISPConfig Developer ISPConfig Developer

    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?
  2. falko

    falko Super Moderator ISPConfig Developer

  3. Ben

    Ben ISPConfig Developer ISPConfig Developer

    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.
    Last edited: Apr 27, 2010

Share This Page