Aller au contenu

cyberdede

Actif
  • Compteur de contenus

    10
  • Inscrit(e) le

  • Dernière visite

Messages postés par cyberdede

  1. Merci pour la réponse mais le problème reste le même

    https://monsite/dossier/fichier envoie bien vers https://monsite/dossier/fichier.php

    mais https://monsite/dossier/ ne renvoie pas vers https://monsite/dossier/index.php

    c'est bizarre car en localhost ça fonctionne

    mon htaccess actuel

    RewriteEngine On
    RewriteCond %{HTTPS} ^off$ [NC]
    RewriteRule ^(.*)$  https://%{HTTP_HOST}/$1   [R=301,L]
    DirectoryIndex index.html index.php
    Options -Indexes
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    #RewriteEngine On
    AddDefaultCharset	UTF-8
    ErrorDocument 404 /404.php
    DirectoryIndex index.php

    le site en question

    https:chezgopi.fr/2/index.php

    je voudrais comme adresse

    https:chezgopi.fr/2

  2. Bonjour à tous

    je voudrais quand je tape https;//monsite/dossier accéder à https;//monsite/dossier/index.php
    or j'accède à https;//monsite/dossier/ avec un 404

    en localhost ca fonctionne

    pour la racine https;//monsite c'est ok

    mon htaccess
     

    RewriteEngine On
    Options -Indexes
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    RewriteCond %{HTTPS} ^off$ [NC]
    RewriteRule ^(.*)$  https://%{HTTP_HOST}/$1   [R=301,L]
    AddDefaultCharset    UTF-8
    ErrorDocument 404 /404.php
    
     
×
×
  • Créer...