Sunday 18 January 2004 6:50:29 am
Hello, I really would appreciate some help, regarding rewriterules for Apache.
I run three sites with ez 3.24 on the same server, using the same db.
When launching th sites, every site will get its own domain name. But until then, I use uri-matching to select between sites like:
localhost/index.php/site1 localhost/index.php/site2
However, the third site need multiple language support. And I have set up siteaccesses for this. So now I can reach the third site like this:
localhost/index.php/site3 for the swedish version and localhost/index.php/site3_en for the english version.
To make the urls:s more intuitive, I want this to work:
localhost/index.php/site3/en for the english one.
And ultimately: localhost/site3/en to work as well, without index.php.
When launching on the real server, I hope to get these URL:s to work:
www.site3.com for swedish pages and www.site3.com/en for english pages.
Thats, it. Has anyone done this before with rewriterules in Apache? I would really appreciate any ideas on how to achieve this.
Regards, Nicklas Lundgren
|