- Posts: 29
- Thank you received: 4
[Réglé] Problème de lien à cause de paramètres qui se rajoutent
- Big Ben Jr
-
Topic Author
- Offline
- Junior Member
-
Less
More
13 years 8 months ago #30965
by 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 !
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 !
The topic has been locked.
13 years 8 months ago #30970
by lavsteph
Replied by lavsteph on topic Problème de lien à cause de paramètres qui se rajoutent
Bonsoir,
cela vient du paramétrage de ta réécriture d'urls, tu utilises quel système ?
cela vient du paramétrage de ta réécriture d'urls, tu utilises quel système ?
The topic has been locked.
- Big Ben Jr
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 4
13 years 8 months ago #30971
by Big Ben Jr
Replied by Big Ben Jr on topic Problème de lien à cause de paramètres qui se rajoutent
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.
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.
The topic has been locked.
13 years 8 months ago #30972
by lavsteph
Replied by lavsteph on topic Problème de lien à cause de paramètres qui se rajoutent
Dé-commente la ligne suivante
en utilisant les paramètres suivant
Si ton cache Joomla est activé pense à le vider.
Code:
# RewriteBase /
Attachment param_seo_2013-03-12.png not found
Si ton cache Joomla est activé pense à le vider.
The topic has been locked.
- Big Ben Jr
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 4
13 years 8 months ago - 13 years 8 months ago #30977
by Big Ben Jr
Replied by Big Ben Jr on topic Problème de lien à cause de paramètres qui se rajoutent
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="(>|%3C)([^s]*s)+cript.*(<|%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>
J'ai dé-commenté la ligne, les paramètres étaient déjà identiques, mais ca ne fonctionne toujours pas malheureusement
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="(>|%3C)([^s]*s)+cript.*(<|%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>
Last edit: 13 years 8 months ago by Big Ben Jr.
The topic has been locked.
13 years 8 months ago #30980
by lavsteph
Replied by lavsteph on topic Problème de lien à cause de paramètres qui se rajoutent
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 ?
Par contre tu utilises quoi comme extension de SEF : natif Joomla ou autre ?
The topic has been locked.
Time to create page: 0.160 seconds
