Hi everyone!
I made a simple HTML site (single index.html page) with two buttons to switch between languages (IT<->EN). Italian index.html is in it subfolder, english index.html is in en subfolder. The buttons modify the URL by replacing /en/ with /it/ and viceversa, allowing to switch between the pages. Everything works fine in locale. Good.
On the server, I have this folder tree
[CODE]root (www.mysite.com)
.htaccess (rules for rewriting)
public_html
index.html (a blank page)
it
index.html
en
index.html
Accessing [url]www.mysite.com[url]www.mysite.com/public_html/it/index.html
What I want is that:
[LIST=1][*]
[url]www.mysite.com[url]www.mysite.com/public_html/it/index.html[url]www.mysite.com[url]www.mysite.com/it/index.html
the language switching buttons must work
I managed to get point 1, so I go to italian index with URL that is just [url]www.mysite.com
[CODE]RewriteRule public_html/index.html public_html/it/index.html
The proble is that with this the buttons won’t work correctly (I suppose the problem is that there isn’t actually any /it/ in the URL to switch with /en/). So I think I need a more “sophisticated” RewriteRule.
Can anyone help me?
Many thanks!
MIX