We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33175
    • 711 Posts
    Hi,

    My website used rewrite mode and all is ok. Except index page : if I reach to my website www.buromatique.fr, home page is displayed. If I reach using www.buromatique.fr/index.php, no soucy. But if I reach using www.buromatique.fr/index.html, IE return an error string (aproximatively, "The site require is not availabled or can not be found.") and Firefox propose me to download the page.

    Below my .htaccess :
    DirectoryIndex index.php 
    
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
    
    AddDefaultCharset utf-8
    


    Thanks for your help.

      Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
    • Do you by any chance have an index.html file in your root directory?

      This may also be the result of server configuration. Index.html is usually the name for the default page. It might be safer to rename that to home, or even accueil.

      Did you try downloading the file to see what it was? I got this:

      <html>
      <head>
      <meta http-equiv="refresh" content="0; url=memo/index.html">
      </head>
      <body>
      </body>
      </html>
      


      which is a live page. I don’t speak French so I’m not sure what it’s about.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 33175
        • 711 Posts
        I have renamed it 2 days ago, when I tried to put online my website. There is non index.html at the root of my website, only index.php
        In my .htaccess, I specified this
        DirectoryIndex index.php
        So my default index page is with php extension.
        After downloaded the file, I can say you that I have same things. I don’t know why memo/index.html appears. This page (memo/index.html) is page put by my hoster to help me to retrieve easly links for admisnitration (phpmyadmin, quota...). You can read this page in english with google wink if not you can make down the page : second part is in english smiley

        I just try to rename memo directory to memo.old for test. Index.html (after download) has already the same content...)

        Thanks for your reply.
          Sorry for my english. I&#39;m french... My dictionary is near me, but it&#39;s only a dictionary !
        • Well, somewhere you’ve got something generating that redirection page for every request for index.html. Perhaps it’s something your hosting company is doing through their server configuration.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 33175
            • 711 Posts
            I don’t know why but now it is ok.
            I think there are like a cache on the server that return always this page ...
            I emptied cache of my browser and this is the most bizzard, you have had the same problem on my website whereas you have not visit my site, no ?

            Thanks for all.
              Sorry for my english. I&#39;m french... My dictionary is near me, but it&#39;s only a dictionary !