Problème SEF _ Joomla 3

Nouveau WRInaute
Bonjour,
Voilà c'est mon premier post sur ce forum..mais je suis proche de la crise de nerf avec mon site joomla.
J'ai vu que ce problème avait été souvent abordé. Excusez moi d'en remettre une couche mais j'ai parcouru des dizaines de forum, je n'arrive pas à trouver une solution à mon problème...Si quelqu'un pouvait m'aider, pleaassseeee :roll:


mon site allait bien avec des url réecrites réécrites au vol sur Joomla.
Malheureusement j'ai cliqué sur Off.
Et là = erreur 404 + message "Vous n'êtes pas autorisé à accéder à cette ressource."
Mes Urls sont devenus des : index.php?option=com_content&view=article&id=16&Itemid=102

J'ai compris que mon problème venait du htaccess (code joint) mais ou??? Il y a t-il un magicien par ici :D

*************************************************************************
Options +FollowSymLinks
DirectoryIndex index.php index.html
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
# Security x 2 #
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.

## 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.
 
WRInaute discret
Je connais juste Joomla de nom, mais ce genre de cms traite généralement les réécritures en interne.
En lisant rapidement ton htaccess, logiquement aucun problème, c'est le même à tout moment (que tu fasses "off" ou "on" sur la réécriture). Tout est redirigé vers l'index.php qui traite la réécriture en interne.

Première question: pourquoi avoir désactivé la réécriture? Est-ce intentionnel ou veux-tu la réactiver?

Deuxième (bête) question: impossible de faire l'opération inverse "off" -> "on" ?

C'est étrange que ça ne fonctionne plus avec la réécriture désactivée car comme je t'ai dit, il gère cela en interne.
Ca devrait pouvoir fonctionner avec ou sans réécriture.
 
Nouveau WRInaute
Je te remercie de ta réponse qui m'éclaire un petit peu sur mon htacess.

C'est la première fois que j'utilise un CMS et j'ai surement été trop confiante.
En essayant de résoudre un autre problème,
j'ai cliqué par erreur sur ce bouton SEF -
toutes mes pages avec mes URL réécrites ont disparu avec une erreur 404.

Que je désactive l'écriture ou pas, il n'y a aucun changement.
est ce que le problème peut venir de l'hébergeur?
 
WRInaute impliqué
Bonjour,

Une fois que tu as remis sur "On", essaie de vider le cache de Joomla (Menu système-> purger le cache -> cocher tout et cliquer sur supprimer).

Et éventuellement le cache de ton navigateur, ça peut aider :wink:
 
Discussions similaires
Haut