Default Index file is not loading

Hi All, I have just started my instance and have a basic problem. The default index.php is not loading in one of my directory - unless I put a backslash manually. The directory is -

The htaccess file in the directory says the following

DirectoryIndex index.php index.html
ErrorDocument 404 "[404 error] If you're seeing this error after install, check$

Options +FollowSymLinks
Options -Multiviews

RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9-]+)$ $1.php [L]

I have gone through various articles to resolve and yet got nothing. Will appreciate any solution to this as the issue is exposing the installation terribly.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Good to hear from you and My root directory is - /var/www/html/ All working well under this directory and i can access this by putting up However

/var/www/html/lamp - this directory is giving me the tough time. This i want to access like this -

Eagerly waiting for any solution or help while I am still looking around like anything :)

Cheers and Regards

JP Singh

what is your root directory? …and what directory is the index.php in?