Matt Sartori

Member
Feb 7, 2016
10
1
53
Indianapolis, IN USA
cPanel Access Level
Root Administrator
I'm getting the following message when I'm trying to go to this url: example.com/couch/

The requested URL /couch/.php was not found on this server.​

Notice that it just says .php instead of index.php. I already have index.php at the top of the directory index (image below) and there is an index.php file in the directory.

- Removed please attach images to your posts -

I've also added the following to my root directory's .htaccess file:

DirectoryIndex index.php

And, going directly to example.com/couch/index.php brings me to the correct page.

Does anyone have an idea of what I'm missing?

Thanks!
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Are there any additional entries in this .htaccess file, or any additional entries in .htaccess files in parent directories?

Thank you.
 

Matt Sartori

Member
Feb 7, 2016
10
1
53
Indianapolis, IN USA
cPanel Access Level
Root Administrator
Hi Michael,

Here is my entire .htaccess file.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
DirectoryIndex index.php

This file is in the /home/username/public_html directory and there are no .htaccess files above the public_html directory.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Could you temporarily remove those Mod_Rewrite rules, and test loading the page in a different browser or after clearing the cache in the existing browser?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I am happy to see the issue is now resolved. Thank you for updating this thread with the outcome.