Skip to main content
added 31 characters in body
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

the simple way will be to use .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine <IfModuleOn
 mod_rewrite RewriteCond %{HTTP_HOST} ^litebook.c>de$ [OR]
  RewriteCond %{HTTP_HOST} ^www.litebook.de$
  RewriteRule (.*)$ http://litebook.de/de/$1 [R=301,L]
  RewriteCond %{HTTP_HOST} ^litebook.co.uk$ [OR]
  RewriteCond %{HTTP_HOST} ^www.litebook.co.uk$
  RewriteRule (.*)$ http://litebook.eu/en/$1 [R=301,L]
</IfModule>

RewriteEngine On RewriteCond %{HTTP_HOST} ^litebook.de$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.de$ RewriteRule (.)$ http://litebook.de/de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^litebook.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.co.uk$ RewriteRule (.)$ http://litebook.eu/en/$1 [R=301,L]

the simple way will be to use .htaccess

    <IfModule mod_rewrite.c>

RewriteEngine On RewriteCond %{HTTP_HOST} ^litebook.de$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.de$ RewriteRule (.)$ http://litebook.de/de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^litebook.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.co.uk$ RewriteRule (.)$ http://litebook.eu/en/$1 [R=301,L]

the simple way will be to use .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^litebook.de$ [OR]
  RewriteCond %{HTTP_HOST} ^www.litebook.de$
  RewriteRule (.*)$ http://litebook.de/de/$1 [R=301,L]
  RewriteCond %{HTTP_HOST} ^litebook.co.uk$ [OR]
  RewriteCond %{HTTP_HOST} ^www.litebook.co.uk$
  RewriteRule (.*)$ http://litebook.eu/en/$1 [R=301,L]
</IfModule>
Source Link
Yama
  • 629
  • 6
  • 24

the simple way will be to use .htaccess

    <IfModule mod_rewrite.c>

RewriteEngine On RewriteCond %{HTTP_HOST} ^litebook.de$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.de$ RewriteRule (.)$ http://litebook.de/de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^litebook.co.uk$ [OR] RewriteCond %{HTTP_HOST} ^www.litebook.co.uk$ RewriteRule (.)$ http://litebook.eu/en/$1 [R=301,L]