+33 3 83 56 65 26 +33 6 87 42 95 30 Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. Lun-Ven : 9.00 à 17.00

URL rewrinting perd mes liens

More
15 years 11 months ago #21729 by LiFAb
Bonjour à tous.
J'ai suivie le tuto sur ce site pour avoir de belles URLs
Depuis quand je clique sur un lien dans les menus de mon site il ne les trouvent plus. Si je reviens au non url rewriting dans le backoffice de joomla il me fait des erreurs php tant que je ne supprime pas le code ajouter dans le fichier .htaccess

Merci pour votre aide !

PS: je suis heureux de voir la puissance de Kunena !

Please Connectez-vous or Create an account to join the conversation.

More
15 years 11 months ago #21739 by lavsteph
Bonjour,

il faudrait dans un premier temps nous donner ton hébergeur, ta version de joomla et quel type de système de réécriture que tu utilises.

Please Connectez-vous or Create an account to join the conversation.

More
15 years 11 months ago - 15 years 11 months ago #21745 by LiFAb
Voici les informations complémentaires :
Mon hébergeur : OVH
Dernière version de Joomla : 1.5.22
J'ai utilisé la méthode décrite dans se site : Activer l'url rewriting en 3 étapes...
Last edit: 15 years 11 months ago by LiFAb.

Please Connectez-vous or Create an account to join the conversation.

More
15 years 11 months ago #21751 by lavsteph
Oula il est vieux cet article, faudra que l'on fasse une mise à jour.;)

Chez OVH voilà la base la plus simple pour commencer
Code:
## # @version $Id: htaccess.txt 14401 2010-01-26 14:10:00Z louis $ # @package Joomla # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL # Joomla! is Free Software ## ##################################################### # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE # # The line just below this section: 'Options +FollowSymLinks' may cause problems # with some server configurations. It is required for use of mod_rewrite, but may already # be set by your server administrator in a way that dissallows changing it in # your .htaccess file. If using it causes your server to error out, comment it out (add # to # beginning of line), reload your site in your browser and test your sef url's. If they work, # it has been set by your server administrator and you do not need it set here. # ##################################################### ##Passage au PHP 5.0 SetEnv PHP_VER 5 ##Passage register globals off SetEnv REGISTER_GLOBALS 0 ##Identifiant de session placé dans le cookie SetEnv SESSION_USE_TRANS_SID 0 ## Can be commented out if causes errors, see notes above. #Options +FollowSymLinks # # mod_rewrite in use RewriteEngine On ########## Begin - Rewrite rules to block out some common exploits ## If you experience problems on your site block out the operations listed below ## This attempts to block the most common type of exploit `attempts` to Joomla! # ## Deny access to extension xml files (uncomment out to activate) #<Files ~ "\.xml$"> #Order allow,deny #Deny from all #Satisfy all #</Files> ## End of deny access to extension xml files RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] # Block out any script trying to base64_encode crap to send via URL RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] # Block out any script that includes a <script> tag in URL RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out any script trying to modify a _REQUEST variable via URL RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) # Send all blocked request to homepage with 403 Forbidden error! RewriteRule ^(.*)$ index.php [F,L] # ########## End - Rewrite rules to block out some common exploits # Uncomment following line if your webserver's URL # is not directly related to physical file paths. # Update Your Joomla! Directory (just / for root) # RewriteBase / son répertoire ## à spécifier selon le cas RewriteBase ########## Begin - Joomla! core SEF Section # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule (.*) index.php RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # ########## End - Joomla! core SEF Section

Dans le panneau de configuration de Joomla, dans l'onglet Site tu utilises les paramètres suivant


Attachment param_seo.png not found




Pour finir tu uploades donc le fichier htaccess.txt à la racine de ton site et tu le renommes en .htaccess

Please Connectez-vous or Create an account to join the conversation.

More
15 years 11 months ago #21780 by LiFAb
Merci pour ta réponse complète lavteph.
Néanmoins aprés avoir suivi t'es instructions je rencontre une erreur radicale dés que je vais à l'url du site !

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


C'est puissant le .htaccess ! moi qui ne sait pas trop à quoi ça sert je me rend bien compte de sa puissance !
J'ai testé en allant d'abords configurer joomla avant d'uploader le .htaccess mais je rencontre la même erreur.

Que se passe t'il ?

Please Connectez-vous or Create an account to join the conversation.

More
15 years 11 months ago #21794 by lavsteph
Bonjour,

commente ou supprime les lignes suivantes

##Passage register globals off
SetEnv REGISTER_GLOBALS 0

##Identifiant de session placé dans le cookie
SetEnv SESSION_USE_TRANS_SID 0

Please Connectez-vous or Create an account to join the conversation.

Time to create page: 0.174 seconds

News extensions

News Communautés

News sécurité