After moving from server to localhost it points to main folder index.html instead of showing the site I had live

Joomla Asked by TheRoyality on September 5, 2021

I am using MAMP and pointing to the project folder. After I access http://localhost, it does not show the website but shows index.html file. I also added db locally, the configuration file I also adjusted. How can I make it work?

Here is my httpd.conf file:

One Answer

Joomla uses index.php as the base, so check the following:

  • Delete index.html if it exists

  • Check the .htaccess file if it exists for a DirectoryIndex directive. If it looks like:

    DirectoryIndex index.html index.php

    reverse the order of the two file names, or just remove the index.html part.

Additionally from the comments:

Modify your httpd.conf.

Looking at your paste bin try:

  • commenting out line 141 which is already defining the mime type - perhaps unnecessarily. I don't have MIME type definitions in my httpd.conf and it works fine, so it may be that the browser does the type interpretation itself without needing to be told by the server what to do with the file.

  • on line 258, change the DirectoryIndex directive from

    DirectoryIndex index.html


    DirectoryIndex index.php index.html

    to help with managing the default pages.

Answered by Patrick Jackson on September 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP