I can not use mod_rewrite nor tinyUrl

bonjour
The installation routine did not detect a functional mod_rewrite module.
However, the module is well installed and functional on the server, checked with the php apache_get_modules () function.
By the way, I use mode_rewrite that works correctly.
Note that I modified the htaccess of the site root to force the https:

>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^(monsite|www.monsite)\.fr [NC]
  RewriteCond %{HTTPS} off 
 
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d  
  RewriteRule ^.*/?$            https://%{HTTP_HOST}/index.php [L,QSA]

would anyone have any idea about this problem?
merci
RB

Comments

  • acrylian Administrator, Developer
    edited October 2017

    Your htaccess file is not what Zenphoto uses at all. That should look like this. You find the template within /zp-core.

    There is also an option to enable rewritten urls. If that's all not it,
    I fear I cannot really help with this as I have virtual no knowledge about server configuration itself. Maybe something is not installed as it should be.

    I personally never encountered this on various standard shared hosts.

  • thank you for the answer, she pushed me a little

    with apache documentation i ended up solving the problem
    now it works

    for information, I modified the htacces as:

    RewriteEngine On
    RewriteBase /
    
    #  Redirection https NC= no case
     RewriteCond %{HTTP_HOST} ^(monsite|www.monsite)\.fr [NC]
     RewriteCond %{HTTPS} off 
     RewriteRule ^.*/?$            https://%{HTTP_HOST}/ [L]
    # Si c'est un dossier ou fichier qui existe on le renvoie sans modification
      RewriteCond %{REQUEST_FILENAME} -f [OR]
      RewriteCond %{REQUEST_FILENAME} -d  
        RewriteRule ^.*$ - [L]
    #  sinon on le renvoie sur index.php avec toute la chaine de la requete
      RewriteRule ^.*/?$           index.php [L,QSA]
    
    
  • acrylian Administrator, Developer

    Great you managed it. We'll planning to go https sometime soon as well so maybe we run into the same issue so we keep in mind. htaccess can really be a beast.

Sign In or Register to comment.