Multiple Domains with alias to same hosting
-
I have multiple domains for several languages and a few “generic” domains.
My intention was that the identity of the domains remains and stay visible.For example website.nl goes to the NL language, EU to the EN language, and so on.
Below I configured the .htaccess, and the direction works, but… the domain switch to the “primary” domain. But I want to keep the identity of the aliases also visible in the browser.
How can I make that happen?
<IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # Main Redirect RewriteEngine On RewriteCond %{HTTP_HOST} ^website\.nl$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.nl$ RewriteRule ^/?$ "https\:\/\/website\.nl\/nl\/" [R=301,L] RewriteCond %{HTTP_HOST} ^website\.eu$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.eu$ RewriteRule ^index\.html$ "https\:\/\/website\.eu\/en\/" [R=301,L] RewriteCond %{HTTP_HOST} ^website\.online$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.online$ RewriteRule ^indexingles\.html$ "https\:\/\/website\.online\/en\/" [R=301,L] RewriteCond %{HTTP_HOST} ^website\.fr$ [OR] RewriteCond %{HTTP_HOST} ^www\.website\.fr$ RewriteRule ^indexingles\.html$ "https\:\/\/website\.online\/fr\/" [R=301,L]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multiple Domains with alias to same hosting’ is closed to new replies.