Forum Moderators: phranque

Message Too Old, No Replies

using htaccess to make domain alias show another language version of p

htaccess domain alias

         

palcek

9:24 am on Aug 11, 2010 (gmt 0)

10+ Year Member



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. :)

jdMorgan

4:47 pm on Aug 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please post your best-effort code as a basis for discussion.

Thanks,
Jim