My Joomla website showing its files and folder when opening in the browser.

How to fix the problem when joomla website showing files and folder.

Cause : The default page has not set properly, please check the .htaccess file

Solution : Follow the below steps and you can overcome with this problem.
First login from your control panel
Click on the file manager ==> Check on the check box with show hidden file
==> click on the public_html folder
==> Inside this find .htaccess folder
==> then check the code if its like below
Options all
DirectoryIndex Sux.html
AddType text/plain .php
AddHandler server-parsed .php
AddType text/plain .html

Then change it as
DirectoryIndex home.php index.php index.html

or you can change with the below code
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

It has resolved my solution.
Note : The above solutions work for all the Joomla version.

About the Author

avatar