Addon domain subfolder .html files 404 error


Rchristiani
Asked:
2013-03-17 9:42 pm EST

Hits: 665
I am having an issue where in any subfolder of my addon domain a 404 when you try and access any .html files
Example:

www.addonname.com/somefolder/

This will return a 404 error, remove the index.html and you will get a listing of the files in that folder.

This is any html file it seems. Any ideas as to what might be going on?

Thanks

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

jamesr
Staff
5,889 Points
2013-03-18 10:26 am EST
Thank you for your question Rchristiani!

Sorry for the trouble with the files not loading in your sub folders. You have the following rewrite rule in your .htaccess preventing the files from loading.

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [NC]

When we rename you .htaccess the subfolders index.php load.

The listing of the files is because the folder does not have an index page so it shows the folder contents. You will want to turn indexing off in the Index manager of your cPanel to stop this.

How do I use the Index Manager in my control panel (cpanel)?

Best Regards,
James R

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!