[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Url rewrite problem with htaccess when pointing several domains on one account on virtual server

Asked by insp3kt0r in Apache Web Server, PHP Scripting Language

Tags: htaccess, mod_rewrite, multiple domain

I have three different domains for a restaurant web site. One part of website is in English, one in Finnish and one in Chinese. Language related parts are published on their own subfolders on one single virtual server account.

I have three domains: .fi, .com and .cn. Traffic is re-directed to proper language spesific subfolder depending on domain chosen. However I need/want to hide that subfolder on url-path.

Everything is working just fine expect when working with one feedback form. Please feel free to try the form yourself to see the problem live.

You can see the problem by trying the form with long address http://www.wokkipannu.fi/finnish/yhteystiedot.php (this is working, even the form processor). However using address which also should function http://www.wokkipannu.fi/yhteystiedot.php, the form resets after submitting and do not transfer to thank you -page like in first case.

There must be some rewrite-relate problem. Code from .htaccess is attached below.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
RewriteEngine On
 
RewriteCond %{HTTP_HOST}  wokkipannu.fi$ [NC]
RewriteCond %{REQUEST_URI} !^/finnish/.*$
RewriteRule ^(.*)$  /finnish/$1 [NC,L]
 
RewriteCond %{HTTP_HOST}  wokkipannu.cn$ [NC]
RewriteCond %{REQUEST_URI} !^/chinese/.*$
RewriteRule ^(.*)$  /chinese/$1 [L]
 
RewriteCond %{HTTP_HOST}  wokkipannu.com$ [NC]
RewriteCond %{REQUEST_URI} !^/english/.*$
RewriteRule ^(.*)$  /english/$1 [L]
[+][-]07/04/09 02:50 AM, ID: 24776457Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/04/09 08:54 AM, ID: 24777196Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/04/09 09:30 AM, ID: 24777266Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625