Htaccess ignored


  • | 373 points

    Hi,

    I'm happy to join you in this laragon project and quit wamp. I'm very impressed of the ease to use Laragon and I want to continue to use this. So thank you so much for this tools !

    I come to you because I have a problem with this tools (no problem is no funny).
    In my projet, I have a redirection SSL in htaccess. It's work in wamp and in production server but not with laragon :
    alt text

    I see this post that looks like my problem : https://forum.laragon.org/topic/1358/laragon-apache-htaccess-is-being-ignored
    I have apache 2.4 (httpd-2.4.46-win32-VS16) and in httpd.conf file I change AllowOverride ("AllowOverride All") in line 273. I reload laragon but problem is still there.

    So can you help me to fix this problem please ?

    Thanks


  • administrators
    | 125850 points

    @pierre-wac : Did you try other version of Apache?


  • | 373 points

    Yes I try with httpd-2.4.35-win64-VC15 and httpd-2.4.46-win32-VS16. I must try with another ?
    If I write "test" to the top of my file .htaccess, I don't have an error. So th.htaccess is not call.


  • administrators
    | 125850 points

    @pierre-wac : Can you check if httpd.conf has this line:

    AllowOverride All
    

  • | 373 points

    @leokhoa Before there was "AllowOverride None", but I change this by "AllowOverride All" in <Directory "C:/laragon/www">XXX</Directory>.

    I restart Apache but I don't have any change.


  • administrators
    | 125850 points

    @pierre-wac : That's the issue. Please find all AllowOverride None and change them to AllowOverride All. Restart your computer if necessary.


  • | 373 points

    I restart all and .htaccess is launch because when I write "test" on the top of the file, I have an error.
    So thanks for this point. But I still have a problem.
    My SSL redirection doesn't work. I don't understand because it's work in production server :
    alt text

    If in my htaccess I write "RewriteRule ^(.*)$ https://google.fr [R=301,L]", I have the same problem

    In my httpd.conf, this line is uncommented :
    LoadModule rewrite_module modules/mod_rewrite.so

    Thanks


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.