Résolu [XENFORO] Comment utiliser la réécriture d'URL avec 1&1 ?

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

iSnAwXz

Premium
Inscription
26 Novembre 2011
Messages
8 111
Réactions
2 604
Points
15 341
RGCoins
0
Bonjour, je ne peux pas utiliser la réécriture d'URL avec 1 & 1. Je suis sous APACHE

Le mod_rewrite est activé sur leur serveur, mais quand j'active la réécriture de l'URL via admin.php? Options / groups / basicBoard /, Je ne peux absolument rien faire sur mon forum.



J'essaie d'adapter le .htaccess mais toujours pareil ...

J'utilise le xenforo htaccess de base

Je suis preneur de toute votre aide afind e trouver comment faire fonctionner la réécriture d'URL.

Bien cordialement, Lucas​
 
Comme je t'ai dis je suis sous 1&1 et j'ai la fonction réécriture d'URLs :
You must be registered for see images attach


Vérifie à la racine du FTP le htaccess.txt :
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>
    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 /xenforo

    #    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>
 
J'ai finalement trouvé la solution !, je la laisse au cas où ça arriverais à d'autres :)

Code:
Options +FollowSymLinks

RewriteEngine On

RewriteBase /

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

    #    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>
 
hello les gars,

le rewrite d'url ne marche pas pour moi alors que j'ai le meme .htaccess que @iSnAwXz
J'ai le rewrite.load d'activé et j'ai également activé l'option dans xenforo ..
Help ..
 
Statut
N'est pas ouverte pour d'autres réponses.
Retour
Haut