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!

Related Questions

Generating a module instance from PHP

0  Asked on September 5, 2021 by ffrewin


Embed custom JS app in Joomla MVC

0  Asked on September 5, 2021 by miasto


Error when updating Gantry from 4.1.20 to 4.1.32

1  Asked on September 5, 2021 by norberto-gomes


Change user permissions programmatically on the fly

1  Asked on September 5, 2021 by aheavyobject


Akeeba backup update broke the site

2  Asked on September 5, 2021 by hamlet-kraskian


Proper way for autoloading in Joomla 4

1  Asked on September 5, 2021 by webchun


Menu Specifically For Super Users

1  Asked on September 5, 2021


Joomla PHP does not match host PHP

2  Asked on February 18, 2021


Controller Joomla – Output Class construct for color css style

1  Asked on February 5, 2021 by andrea-suriani


Joomla custom component – router not find alias

1  Asked on January 21, 2021 by lecraver


Joomla 3 call model function inside controller

3  Asked on December 28, 2020 by wbdevlop


Product url problem after updating VirtueMart

1  Asked on December 23, 2020 by kiasaty


Display intro image inside mod_breadcrumbs

0  Asked on November 11, 2020 by geoplous


Ask a Question

Get help from others!

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