Is that possible to rename the greek files to something like the following example:
should be renamed to
eg: Remove the -gr of all the greek documents and add /gr at the end. Also only for index file, example.com/index-gr.html should be example.com/gr
Theres a couple ways you can go about it.
If you have no experience with URL rewriting, you could create folders that are named the HTML file and put the language files in that with the HTML extension.
In document root, create a folder named "blog.html". In the "blog.html" folder, create files named "en.html" and "gr.html" and place german content of the blog in "gr.html" and english content of the same blog in "en.html" Then users can access the english and german versions of your blog via the following URLs:
But if you want to make the URL more user friendly, you will want to look up URL rewriting and create URLs that map to the actual HTML content on the server. For example, you can make a rewrite rule that maps:
to the file:
Personally, I think it would make more sense to have the root folder the name of the language. That way content can be sorted nicely on the server.
Maybe something like this: