THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 Changer le nom de /web/

(13-06-2019 10:51:27)


Bonjour,

J'ai installé Thélia dans /thelia/

N'arrivant pas à faire pointer vers l'espace web vers /Thelia/web ERR TOO MANY REDIRECT, mais seulement vers /Thelia/, J'ai quelques questions :

1) aurais-je manqué une chose evidente pour eviter l'erreur ?
2) Si je dois garder un format URL/web/, comment changer "web" en un truc plus sympa genre "achat", et cela proprement, et sans réinstaller Thelia completement ?

Merci !

Offline

#2 Re: Changer le nom de /web/

(13-06-2019 10:59:27)


Bonjour,

comment est configuré ton fichier .htaccess ?

Offline

#3 Re: Changer le nom de /web/

(13-06-2019 11:02:23)


Bonjour,

le voici, j'ai commenté rewrite base car plus besoin puisque le nom de domaine pointe vers thelia/web.


Options +FollowSymlinks -Indexes

AddDefaultCharset UTF-8

# RewriteBase "/thelia/web"

<IfModule mod_rewrite.c>
    RewriteEngine On

    # 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>

Offline

#4 Re: Changer le nom de /web/

(13-06-2019 11:24:12)


Probleme résolu, j'avais un .htaccess ailleurs qui contredisait l'autre...

Par contre, la question 2) m'interesse toujours.