comment oblige jomlaa affiche les pages avec

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

  • [RÉGLÉ] comment oblige jomlaa affiche les pages avec

    bonjour

    d'habitude je réglé sa avec une ou deux ligne dans le fichier .htaccess dans un site entièrement en html .

    mais la je voudrait aussi oblige aussi jomlaa que quand quelqu'un tape http://www.fncr.eu ou http://fncr.eu jomlaa sa affiche le site que en http://www.fncr.eu .

    je y suis arrive pour la page accueil avec le fichier .htacces . mais sa me mette mette ma page erreu404 par defaut sur tout les autre page .

    j'aurai besoin que sa affiche que une page a cause de mon script de payement qui ne fonctionne pas sinon

    je vous remercie par avance de vos réponse ou piste car je découvre se beau cms qui facilite bien le travail a mes collègue qui ne save pas édite du code . sa leur permet d'écrire leur nouvelle sans s'avoir le code. merci a vous
    Dernière édition par esteban1 à 16/02/2015, 10h27

  • #2
    Re : comment oblige jomlaa affiche les pages avec

    Bonjour,

    Et bienvenue sur le forum.

    Il suffit dans le .htaccess Joomla, d'insérer, avant les autre srègles la règle de redirection
    Code:
    RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
    RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
    Joomla! ne diffère en rien des règles classiques, qui de toute manière au niveau du .htaccess sont gérées par Apache et non le HTML ou le CMS cible.
    Pas de demande de support par MP.
    S'il n'y a pas de solution, c'est qu'il n'y a pas de problème (Devise Shadok)

    Commentaire


    • #3
      Re : comment oblige jomlaa affiche les pages avec

      Envoyé par jisse03 Voir le message
      Bonjour,

      Et bienvenue sur le forum.

      Il suffit dans le .htaccess Joomla, d'insérer, avant les autres règles la règle de redirection
      Code:
      RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
      Joomla! ne diffère en rien des règles classiques, qui de toute manière au niveau du .htaccess sont gérées par Apache et non le HTML ou le CMS cible.
      bonjour jisse03

      déjà merci beaucoup a toi

      donc en mettent sa
      Code:
      RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
      ## Default .htaccess file
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
      ErrorDocument 404 https://fncr.eu/index.php/index.php?option=com_content&view=article&id=86
      j'ai toujours la même erreu

      je peut toujours voir la page accueil sans www. sije tape fncr.eu ou la page forum qui es un lien externe de jomlaa(phpbb) mais pour les autre pages du site je tombe sur ma page erreu404 habituelle

      si je mes
      Code:
      RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]
      ## Default .htaccess file
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
      ErrorDocument 404 https://fncr.eu/index.php/index.php?option=com_content&view=article&id=86
      idem
      si je mes sa
      Code:
      RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
      RewriteRule ^(.*)$ https://www.fncr.eu.com/$1 [L,R=301]
      ## Default .htaccess file
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
      ErrorDocument 404 https://fncr.eu/index.php/index.php?option=com_content&view=article&id=86
      sa me mais bien la page accueil avec les www. mais elle es même pas visible les autre idem a par la page externe
      si je mes
      Code:
      RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
      RewriteRule ^(.*)$ http://www.fncr.eu.com/$1 [L,R=301]
      ## Default .htaccess file
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
      ErrorDocument 404 https://fncr.eu/index.php/index.php?option=com_content&view=article&id=86
      si je tapes fncr.eu sa me fait tombe sur cette page chelou qui es pas chez moi


      si je tapes
      Code:
      RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
      RewriteRule ^(.*)$ https://www.fncr.eu.com/$1 [L,R=301]
      ## Default .htaccess file
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L]
      ErrorDocument 404 https://fncr.eu/index.php/index.php?option=com_content&view=article&id=86
      même résultat
      je sait plus trop quoi faire . j’écris peut être mal mes fiche .htaccess ou il y a quelque chose a regle en plus dans jomlaa . je sait pas !!!!

      le pire sait que l'erreur reste ;a part si je reme en place le fichier initial de jomlaa
      Code:
      ##
      # @package    Joomla
      # @copyright  Copyright (C) 2005 - 2014 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 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.
      et la si je mes
      Code:
      RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
      RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
      ##
      # @package    Joomla
      # @copyright  Copyright (C) 2005 - 2014 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 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 site fonctionne mes ne force pas sait maudit WWW.
      Dernière édition par esteban1 à 16/02/2015, 10h22

      Commentaire


      • #4
        Re : comment oblige jomlaa affiche les pages avec

        Pourquoi trouve-t-on .eu qui devient .eu.com ? la rewrite rule devrait être
        Code:
        RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
        RewriteRule ^(.*)$ https://www.fncr.eu/$1 [L,R=301]
        Pas de demande de support par MP.
        S'il n'y a pas de solution, c'est qu'il n'y a pas de problème (Devise Shadok)

        Commentaire


        • #5
          Re : comment oblige jomlaa affiche les pages avec

          Envoyé par jisse03 Voir le message
          Pourquoi trouve-t-on .eu qui devient .eu.com ? la rewrite rule devrait être
          Code:
          RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
          RewriteRule ^(.*)$ https://www.fncr.eu/$1 [L,R=301]
          deja je voudrais te remecie beaucoup donc j'ai mie
          Code:
          RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
          RewriteRule ^(.*)$ https://www.fncr.eu/$1 [L,R=301]
          ##
          # @package    Joomla
          # @copyright  Copyright (C) 2005 - 2014 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 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.
          et au miracle sa fonctionne . je te remercie beaucoup

          je vient de voir mon erreu qui en faite etez évidente apres coup sur se code la
          a
          Code:
          RewriteCond %{HTTP_HOST} ^fncr\.eu$ [NC]
          RewriteRule ^(.*)$ https://www.fncr.eu.com/$1 [L,R=301]
          j'avais oublie enlevé le .com de la deuxième ligne quand je les adapte . par contre j'avais bien mie le s pour ssl . j’étaie pas sur non plus car sait la premier fois que je fessa sa en ssl . sa fessait beaucoup de chose a la fois . mon petit cerveau a surchauffe

          je suppose que on signale le message comme regle avec [/regle]
          dans le message du sujet de depart

          je te remercie beaucoup
          Dernière édition par esteban1 à 16/02/2015, 10h37

          Commentaire

          Annonce

          Réduire
          Aucune annonce pour le moment.

          Partenaire de l'association

          Réduire

          Hébergeur Web PlanetHoster
          Travaille ...
          X