I have over 30,000 html files stored in
www.example.com/docs, and these files are linked to each other. When it comes to displaying the content of those files on my site, I use the following code: HTML Include using Java
I learned today that my host allows a maximum of 10,000 files per folder. This means that I have start splitting up my files into different folders. I will probably create a number of folders like
This causes an issue because I have to amend the hyperlinks within all 30,000 files, and I have to update the URLs within pages that display documents within those folder.
I don't mind creating the folders and moving the files, but I am really dreading updating the links and URLs. Is there a solution I can leverage? I am thinking something
.htaaccess related, but I am not knowledgeable enough.
EDIT: my files are in the following format
doc[NUMBER].htm, so it look like this: