Hi,
I'm just getting familiar with .htaccess syntax. So far, I've manage to fulfill some of requirements but I can't combine them to work all together.
I have a web page domain.si and I created domain alias domain.eu. The English version of page is situated at domain.si/en
What I'd like to achieve is a domain.eu to act as an English version of domain.si (to read from domain.si/en, so to say).
Some requirements:
- redirection of domain.si to www.domain.si (and also for domain.eu)
- when domain.eu (or domain.eu/subfolder) is visited, it should show the content of domain.si/en (or domain.si/en/subfolder), but keep the address bar at domain.eu
- when domain.si/en (or domain.si/en/folder) is visited, it should redirect to domain.eu (or domain.eu/folder)
- all URLs should be case insensitive ([NC])
The main reason I'm trying to achieve this, is because ccTLD (country-code top level domain name) is important geotargeting factor. Therefore gTLD (in this case .eu) is very convenient when targeting visitors outside my country and leading them to English version of page.
I apologise for not speaking English well - I hope that the text is understandable. :)