Réécriture d'URL en clair (SEF)

Réduire
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • Réécriture d'URL en clair (SEF)

    Bonjour,

    Je viens de créer un nouveau site sur un nouveau plan d'hébergeur.
    Mais quand j'active tous les options (Réécriture au "vol" des URLOui
    Ajouter un suffixe aux URLOui
    Alias UnicodeOui) pour avoir un liens du style http://exemple.com/astuces.html
    Cela me met

    404 Not Found

    The resource requested could not be found on this server!
    Powered By LiteSpeed Web Server
    LiteSpeed Technologies is not responsible for administration and contents of this web site!

    Je n'ai jamais eu ce genre de problème auparavant.

    Comment faire pour tout regler s'il vous plait ?
    http://kakashi-xd.com
    http://naruto-xd.com
    http://gaara-xd.com

  • #2
    Re : Réécriture d'URL en clair (SEF)

    Alias UnicodeOui) pour avoir un liens du style http://exemple.com/astuces.html
    Ce n'est pas pour cela mais pour les caractères spéciaux. Ceci dit si tu te paies des 404, c'est que le fichier htaccess n'a pas été renommé et/ou mal adapté par rapport aux prérequis de l'hébergeur, un classique quoi.

    Commentaire


    • #3
      Re : Réécriture d'URL en clair (SEF)

      Bonsoir,$Je vous remercie pour votre réponse rapide.
      En fait je n'ai ni mofidier ni changer d'emplacement le fichier, il se trouva o`il est, c'est a dire dans la racine principale de mon site.

      Pour l'hébergeur je suis chez PlanetHoster

      Je vous mets ce que je vois sur le fichier quand je l'ouvre, est-ce qu'il y a un problème ?

      Je vous remercie encore pour votre aide

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

      ##
      # 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.
      #
      ## 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.
      Dernière édition par Gaara-XD à 27/08/2012, 23h14
      http://kakashi-xd.com
      http://naruto-xd.com
      http://gaara-xd.com

      Commentaire


      • #4
        Re : Réécriture d'URL en clair (SEF)

        Là c'est le htaccess.txt classique qui passe à peu près partout, à la limite du peut décommenter la ligne rewritebase /.

        Mais aussi l'as-tu renommé en .htaccess ?

        Commentaire


        • #5
          Re : Réécriture d'URL en clair (SEF)

          Non je n'ai rien modifier, quand je l'ai téléchargé il etait deja en "htaccess.txt" et non en "htaccess", dois-je le mettre en "htaccess" ?

          EDIT :

          Le .htaccess aussi est sur la racine
          Dernière édition par Gaara-XD à 28/08/2012, 01h28
          http://kakashi-xd.com
          http://naruto-xd.com
          http://gaara-xd.com

          Commentaire


          • #6
            Re : Réécriture d'URL en clair (SEF)

            En faite le "htaccess.txt" doit être renommée en ".htaccess" afin que SEF fonctionne.
            Mais si tu en as déjà un, compare les et ajoute les lignes existantes dans celui de joomla. l'existant peut provenir de ton hébergeur ou d'une solution que l'hébergeur te propose !!
            Règlement du forum : http://forum.joomla.fr/faq.php
            Comment mettre le post en [Réglé]: http://forum.joomla.fr/announcement.php?f=58
            Joomla! 3 Le Livre Pour Tous , n'hésitez pas à le lire pour vous aider
            http://www.iwannaclick.org

            Commentaire


            • #7
              Re : Réécriture d'URL en clair (SEF)

              Ha je ne savais pas qu'il faillait faire comme ça.
              Hier j'ai juste pris le fichier ".htaccess" de mon autre site, et je l'ai copié sur mon nouveau et cela fonctionne ****l !

              Je vous remercie de m'avoir aiguiller sur le problème.
              http://kakashi-xd.com
              http://naruto-xd.com
              http://gaara-xd.com

              Commentaire

              Annonce

              Réduire
              Aucune annonce pour le moment.

              Partenaire de l'association

              Réduire

              Hébergeur Web PlanetHoster
              Travaille ...
              X