Skip to main content

Apache not finding index.php by default

Comments

5 comments

  • cPanelMichael
    Hello :) Are there any additional entries in this .htaccess file, or any additional entries in .htaccess files in parent directories? Thank you.
    0
  • Matt Sartori
    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!
    0
  • cPanelMichael
    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.
    0
  • Matt Sartori
    Hi Michael, It turns out another developer added an .htaccess file that fixed the issue so I can't troubleshoot this any further. You can close the ticket. Thanks.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating this thread with the outcome.
    0

Please sign in to leave a comment.