Hi everyone, I've been working on a problem for a day now. I have two domains hosted on the same ISPConfig system. example.com and example.de I've a multi-language web site running on example.com web space. I would like to forward example.de inquiries to example.com/index.php?lang=german I can create a forward using that URL, but my problem is, ISPconfig adds a "/" at the end of forwarded URL as a rule. Then my site does not recognize the language pointer. I would still get the English site. I know that I can not edit the vhosts_ispconfig.conf manually, and the only way is to add an apache directive for example.de. What do I insert in that text area? I've tried both; Solution 1: Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.de [NC] RewriteRule ^/(.*) http://www.example.com/index.php?lang=german$1 [ L,R] Solution 2: Copy paste the complete Virtual Host text. Both did not work. Any suggestions or ideas? Thanks,
The apache directives that shall be inserted into the vhots. If you insert a apache directive there and it does not work, then there is an error in the directive that you entered.
Till thank you for the reply. But I could not understand the problem with the directive. Code: RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.de [NC] RewriteRule ^/(.*) http://www.example.com/index.php?lang=german$1 [ L,R] This code is automatically created by ISPConfig into the vhost file, if I use the forward capability. Can you tell me what seems to be the problem in the code that I insert?
Dont insert the code twice if the code has been inserted by ISPConfig already. Also you code is broken as you have a newline after [