ZenphotoCMS Forum
I can not use mod_rewrite nor tinyUrl - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: I can not use mod_rewrite nor tinyUrl (/thread-13036.html)



I can not use mod_rewrite nor tinyUrl - RB26 - 2017-10-06

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:
[code]
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]
[/code]>
would anyone have any idea about this problem?
merci
RB




I can not use mod_rewrite nor tinyUrl - acrylian - 2017-10-06

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.




I can not use mod_rewrite nor tinyUrl - RB26 - 2017-10-06

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:
[code]
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]

[/code]




I can not use mod_rewrite nor tinyUrl - acrylian - 2017-10-06

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.