My website directory structure looks like:




"personal" contains various .html (non-Word Press) web pages.

I am able to access php extension files like www.domain.com/personal/example.php, no problem. However www.domain.com/personal/example.html or www.domain.com/personal/dir (where dir contains an index.html file) fail with

Error 404 - Page Not Found

The permissions on the files are correct because if I just change the file extensions, they can be accessed.

I really don't want to go through all of the .html files and rename them. There are a lot of them-- and it seems like there has to be an easier way to do this.

I swear this worked previously. I'm guessing that some update I made broke things (e.g., to a WordPress version).

Suggestions? Thanks!

As requested by comment, here's the .htaccess in my public_html directory:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .*.html?$ index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
# 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]

# END WordPress

# Use PHP 5.4
# Use PHP54 as default
AddHandler application/x-httpd-php54 .php
<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/php54/lib

The part of this above # BEGIN WordPress doesn't look so good. And, this file keeps changing! I have repeatedly removed the text above # BEGIN WordPress and it keeps reappearing!

  • Please share your .htaccess file. This might be some server configuration issue – Zeshan Mar 13 at 4:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.