Non “WordPress” pages/code getting 404 error

The problem your having is because of the way the WordPress rewrite system works. The WordPress .htaccess sends all requests (that dont actually exist except index.php) through the index.php file in the WordPress root directory. If any request is made for a file named index.php it will also get sent through the root WordPress index.php.

A simple solution would be to rename the index.php file in /ericsinfo to default.php. Depending on your hosting setup it might work by just doing that. If it doesn’t you can add a 301 redirect to your .htaccess that points www.domain.com/ericsinfo to www.domain.com/ericsinfo/default.php

Redirect 301 /ericsinfo http://domain.com/ericsinfo/default.php

The .htaccess file will be located in your public_html or root public web directory.

Leave a Comment