Résolu RÉSOLU | HTTPS sur XenForo et l'Url rewriting

Statut
N'est pas ouverte pour d'autres réponses.

Stellaros

Membre
Inscription
18 Mai 2017
Messages
11
Réactions
1
Points
33
RGCoins
0
Bonsoir à tous,
Je vous explique mon problème,
j'ai mit un certificat SSL sur mon site et donc aussi sur mon forum.
Tout fonctionne parfaitement sur le forum.

MAIS quand j'active l'url rewriting j'ai des problème partout, topic, catégorie, login, logout, partout ! Et quand le désactive tout remarche donc je suppose que vous avez compris que le problème viens de l'url rewriting et donc accessoirement du .htaccess

Voici donc mon .htaccess :

Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /home/web/www/forum

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

Si vous avez des idées pour résoudre ce problème.

Cordialement, Stellaros.
 

iSnAwXz

Premium
Inscription
26 Novembre 2011
Messages
8 111
Réactions
2 604
Points
15 341
RGCoins
0
Ajoute ça sur ton .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) {HTTP_HOST}%{REQUEST_URI} [R,L]
 
Cette réponse a aidé l'auteur de cette discussion !

Stellaros

Membre
Inscription
18 Mai 2017
Messages
11
Réactions
1
Points
33
RGCoins
0
Ajoute ça sur ton .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) {HTTP_HOST}%{REQUEST_URI} [R,L]
Merci pour t'a réponse mais ça ne fonctionne toujours pas :/
PS : l'url de mon forum est
Screen du forum après un interaction avec l'url rewriting d'activé :
You must be registered for see images attach


Code du .htaccess :
Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /home/web/www/forum

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 

Stellaros

Membre
Inscription
18 Mai 2017
Messages
11
Réactions
1
Points
33
RGCoins
0
PS : Tout de suite maintenant j'ai désactiver l'url rewriting.
J'attend d'avoir un nouveau code pour pouvoir le réactivé pour tester.
Car pendant cette période le forum est toujours actif.
 

Stellaros

Membre
Inscription
18 Mai 2017
Messages
11
Réactions
1
Points
33
RGCoins
0
J'ai trouvé la solution seul en cherchant dans ma configue apache. ATTENDEZ non ce n'était pas mal configurer mais j'ai crée un nouveau directory dans mon host réservé au forum et j'y ai mit la configue du .htaccess et à marchais maintenant j'suis content de moi ^^ RÉSOLU.
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut