Hi Luigi,
thanks for your help so far. I realised by myself that I need to play around with the htaccess what I did. But I do have a problem - maybe you have an idea.
I first tried:
RewriteCond %{HTTP_HOST} ^(www\.)komm-mit\.de$
RewriteRule ^(.*)$
www.komm-mit.com/$1 [R=301,L]
That rewrites
www.mydomain.de/DE/path -->
www.mydomain.com/index.php/path
I tried as you suggested:
RewriteCond %{HTTP_HOST} ^(www\.)komm-mit\.de$
RewriteRule ^/DE/(.*)$
www.komm-mit.com/de/$1 [R=301,L]
This just throws a 500 ... any help would be appreciated
___________________________________________
The first part of my rewrite rules is btw created by Joomla:
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the request is for root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php
Cheers!
Jochen