How to prevent 404 for an empty directory?
I have paths like folder/folder/index.php but there is nothing in the initial folder.
Any ideas what I can do?
I can always place an index.html in the folder I guess but I dont really see that as a fix....
Can you at least post your configuration here? It would be more helpful for us to give an idea.
My site structure is such that I have folders that have no index file, but contain another folder that does have an index file. For example, lets say that I sell fruit, my structure is like this:
The 'fruit' folder is the parent for all the types of fruits we sell and hence why there is no index in there. I can add an index of course but id just rather than an htaccess rule that prevents the error 404, because if the user deletes the /apples/ bit of the path then they get the error. Does that makes sense?
Let me ask you another way, is it better practice to have an index in each folder? Thanks
|All times are GMT +1. The time now is 09:36 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.