Question [Réglé] Problème de lien à cause de paramètres qui se rajoutent

Plus d'informations
12 Mar 2013 16:13 #1 par Big Ben Jr
Bonjour,

J'ai un problème avec la structure des liens sur mon site, si quelqu'un pouvait m'aider ce serait sympa ! :)

www.wakeup-bruxelles.com
Les liens de la page d'accueil renvoient correctement aux articles.
ex: www.wakeup-bruxelles.com/droit/de-l-anti...au-terrorisme-d-etat

www.wakeup-bruxelles.com/articles
Par contre dans le lien de menu "articles", les liens des articles ne fonctionnent plus car le paramètre "articles/" y a été ajouté !!
ex: www.wakeup-bruxelles.com/articles/droit/...au-terrorisme-d-etat

Comment faire pour que ce paramètre ne soit pas ajouté aux liens présents sur cette page ?
J'ai le même problème quand je me rends dans le lien de sous-menu "articles/politique", la c'est le paramètre "articles/politique" qui se rajoute sur mes liens.

Voilà, si quelqu'un à la solution je suis preneur, merci ! :)
Le sujet a été verrouillé.
Plus d'informations
12 Mar 2013 18:33 #2 par lavsteph
Bonsoir,

cela vient du paramétrage de ta réécriture d'urls, tu utilises quel système ?
Le sujet a été verrouillé.
Plus d'informations
12 Mar 2013 18:53 #3 par Big Ben Jr
Je suis sur Apache.

Voila les infos de la réécriture d'urls de mon .htaccess si ca peut t'aider ?

## 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!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%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})
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

# RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
Le sujet a été verrouillé.
Plus d'informations
12 Mar 2013 19:11 #4 par lavsteph
Dé-commente la ligne suivante
# RewriteBase /
en utilisant les paramètres suivant

Si ton cache Joomla est activé pense à le vider.
Pièces jointes :
Le sujet a été verrouillé.
Plus d'informations
12 Mar 2013 19:29 - 12 Mar 2013 19:35 #5 par Big Ben Jr
Merci pour ta réponse !
J'ai dé-commenté la ligne, les paramètres étaient déjà identiques, mais ca ne fonctionne toujours pas malheureusement :( le cache Joomla est désactivé.

J'ai aussi un fichier web.config.txt avec ces infos si ca peut t'aider ?

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Joomla! Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{QUERY_STRING}" pattern="base64_encode[^(]*\([^)]*\)" ignoreCase="false" />
<add input="{QUERY_STRING}" pattern="(&gt;|%3C)([^s]*s)+cript.*(&lt;|%3E)" />
<add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
<add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
</conditions>
<action type="CustomResponse" url="index.php" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
</rule>
<rule name="Joomla! Rule 2">
<match url="(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{URL}" pattern="^/index.php" ignoreCase="true" negate="true" />
<add input="{URL}" pattern="/component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Dernière édition: 12 Mar 2013 19:35 par Big Ben Jr.
Le sujet a été verrouillé.
Plus d'informations
12 Mar 2013 20:48 #6 par lavsteph
Vu que tu es sur un serveur Linux le web.config.txt ne te sert à rien car il est dédié pour les hébergements Windows donc tu peux directement le supprimer.

Par contre tu utilises quoi comme extension de SEF : natif Joomla ou autre ?
Le sujet a été verrouillé.
  • Vous ne pouvez pas: Créer un nouveau sujet.
  • Vous ne pouvez pas: Répondre au sujet.
  • Vous ne pouvez pas: Éditer votre message.
Modérateurs: lavstephxillibittramber91Scottuxsergestarter
Temps de génération de la page : 2.159 secondes