: Folder architecture for a multilanguage website with multiple index.html files I just translated my website into French. As usual, the original version of the site has its index.html file in the
I just translated my website into French. As usual, the original version of the site has its index.html file in the root directory, where is also the rest of the pages in English. I created an /fr/ folder in the root directory and put into it the French version of the index.html (naming it as such) and the rest of the pages in French.
However, if I link to example.com/fr/, I get a forbidden error, instead of automatically going to the index of the subfolder. How do I achieve a root-like behavior in the subfolder?
More posts by @Tiffany637
1 Comments
Sorted by latest first Latest Oldest Best
Every folder can have an index.html file, this is the first file your webserver will tipically look if you do not specify another file in in URI.
I have the same folder structure in my personal website as you (with Spanish instead of French) and works pretty good.
So the problem here has to do with how your server access your subdirectories or how your web framework handles routes. You should investigate in each logs errors as having an index.html in each folder isn't the problem, is a very common practice.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.