Mobile app version of vmapp.org
Login or Join
Tiffany637

: 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

@Tiffany637

Posted in: #Internationalization #Multilingual #WebsiteDesign

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Tiffany637

1 Comments

Sorted by latest first Latest Oldest Best

 

@Michele947

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme