I have too many file in one of my folders so I want to split it down into subfolders. e.g. folder1/ has 100 files I want to make it so its like folder1/folderA, folder1/folderB, folder1/folderC However I have no natural index file for each of the A, B, C. At the moment I have just put a blank file in so that people can't access the files in the directory. My question is what is the best way to deal with this other than putting content for the sake of it on the blank index file? There is an important file in each of the directories. Is there a way that going to FolderA for example would open the important file as default? thanks. Edit: after thinking, the best way to do this is probably put a .htaccess folder in each of these directories to redirect it to the important page rather than the index file in the folder. Could someone advise me on this please?
Can you give real examples of the of the URLs for the files and folder names EXCEPT be SURE to use www.example.com for the domain instead of your real domain? It's hard to picture exactly what your problem is so that I can suggest a solution (or two).
Yeh sure, FolderA = Football/ The files in it are Premiership.php, Championship.php etc... I don't have a general page about football so the index is blank. I was thinking of redirecting the index to Premiership.php
Okay, well how about you do this. Say you had football/footballa/champisonship.php Change it to, football/footballa/championship/index.php? Means you still have the keyword in the domain, with no kind of redirect.
That doesn't really work because for every file inside the folder there now has to be an extra folder with just one file in it. So it would mean 100+ extra folders with 1 file in them.