Impossible de supprimer index.php dans les url ...

Réduire
Ce sujet est fermé.
X
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • [RÉGLÉ] Impossible de supprimer index.php dans les url ...

    Bonjour

    Bon, encore un souci avec les rewriting ... J'en perds le peu de certitudes que j'avais acquis sur le sujet ...

    - j'ai renommé le fichier htaccess en .htaccess
    - j'ai supprimé le # devant RewriteBase
    - j'ai coché la case mde rewriting de la configuration Joomla : Oui
    - j'ai vidé le cache de mon navigateur (Chrome ou mozilla)

    version Joomla : 2.6

    ==> Qui peut me sortir de ce puits ?

    Merci

  • #2
    Re : Impossible de supprimer index.php dans les url ...

    Dans la config de Joomla, tu as deux cases à cocher. Je suppose que tu l'as fait.

    Ton htaccess.txt était bien le fichier standard de Joomla ? Peux-tu poster ici ?

    Sinon, à te lire, tu as fait tout ce qu'il fallait...

    Ah, si, question, tu es en local ou en prod ? Si local, c'est probablement logique si ton serveur localhost n'est pas configuré pour la réécriture.
    Christophe (cavo789)
    Mon blog, on y parle Docker, PHP, Python, WSL, Joomla, Markdown et plein d'autres choses : https://www.avonture.be/fr​

    Commentaire


    • #3
      Re : Impossible de supprimer index.php dans les url ...

      version Joomla : 2.6
      Ça vient de sortir ?
      Mon mot de passe : les huit derniers chiffres du nombre Pi

      Commentaire


      • #4
        Re : Impossible de supprimer index.php dans les url ...

        Bon, OK, la version de Joomla est la 2.5.6

        Sinon, oui, j'ai bien coché les deux cases de rewriting.

        Mon fichier .htaccess :

        ##
        # @package Joomla
        # @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
        # @license GNU General Public License version 2 or later; see LICENSE.txt
        ##

        SetEnv REGISTER_GLOBALS 0
        SetEnv PHP_VER 5

        ##
        # 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.
        ##

        ## 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!
        #
        # 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.
        #
        RewriteCond %{HTTP_HOST} !^www.valueo.fr$
        RewriteRule ^(.*)$ http://www.valueo.fr/$1 [R=301]
        ## 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.

        Commentaire


        • #5
          Re : Impossible de supprimer index.php dans les url ...

          Hello

          Voilà ! it's done ... J'ai "déflaggé" le rewrite dans ht access, puis recoché dans la config Joomla ... It works !

          Merci pour avoir tendu la main ...

          Commentaire


          • #6
            Re : Impossible de supprimer index.php dans les url ...

            Tu as quand même 14 versions de retard, il est plus qu'urgent de procéder à une mise à jour (après la rituelle sauvegarde bien entendu).
            Mon mot de passe : les huit derniers chiffres du nombre Pi

            Commentaire


            • #7
              Re : Impossible de supprimer index.php dans les url ...

              Salut

              RewriteBase doit être assez rarement décommenté. Donc, voilà, dans ton cas, il doit l'être

              Pense à mettre à jour ton Joomla 2.5.x, en théorie, un seul clic suffit. Ton site contient des trous de sécurités qui ont été comblés par Joomla depuis lors...
              Christophe (cavo789)
              Mon blog, on y parle Docker, PHP, Python, WSL, Joomla, Markdown et plein d'autres choses : https://www.avonture.be/fr​

              Commentaire

              Annonce

              Réduire
              Aucune annonce pour le moment.

              Partenaire de l'association

              Réduire

              Hébergeur Web PlanetHoster
              Travaille ...
              X