Bonjour,
mon symptôme : toutes mes URLs fonctionnent bien sauf lorsque je vais à la racine de mon site (appelons-le monsite.fr). Dans ce cas seulement, je me retrouve avec
monsite.fr/web/web/web/web/web/web/web/web/web/web/web/web/web/web/web/web/web/web/web/ … et une belle erreur 404.
(d'ailleurs il y a 19 "web/" seulement : pourquoi 19 ?)
Au niveau de l'hébergeur, monsite.fr pointe vers www/boutique/ où j'ai installé Thelia.
Dans la config de Thelia, rewriting_enable est activé, et j'ai indiqué comme url du site : monsite.fr/ (mais quand j'essaie monsite.fr/web le problème est le même).
Voici le contenu de mon htaccess à tout hasard, mais c'est grosso modo celui fourni avec Thelia (j'ai juste ajouté quelques lignes pour tout passer en https) :
Options +FollowSymlinks -Indexes
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# SEO, remove the subdomain www in URL
# Exemple : http://www.yourdomain.com/contact redirect 301 to http://yourdomain.com/contact
# To activate uncomment the following two lines
#RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
#RewriteRule ^(.*) http://yourdomain.com/$1 [QSA,L,R=301]
# SEO, add the subdomain www in URL
# Exemple : http://yourdomain.com/contact redirect 301 to http://www.yourdomain.com/contact
# To activate uncomment the following two lines
#RewriteCond %{HTTP_HOST} ^yourdomain.com$
#RewriteRule ^(.*) http://www.yourdomain.com/$1 [QSA,L,R=301]
# SEO, to avoid duplicate content with index.php in url
# Exemple : http://www.yourdomain.com/index.php/contact redirect 301 to http://www.yourdomain.com/contact
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.?)index\.php/(.*) /$1$2 [R=301,NE,L]
# If thelia is installed in a subdirectory (e.g., thelia2)
# define the RewriteBase below to get a proper URL rewriting
# RewriteBase /thelia2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization},last]
</IfModule>
Si vous avez une piste, merci d'avance !
Last edited by moustiquaire (06-01-2020 11:35:17)