From www.example.com to www.example.de

14 years 6 months ago #5285 by multinet24
Hello Emir
Sorry for my bad english.
i wont chanche the olt domaine  to a new domain name and i wont redirect all URL 

From www.example.com/test   to www.example.de/test
I added the following code in the .htaccess, but it does not work
can you helph my ??

#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) example.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.example.com
RewriteRule (.*) example.de/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^example.com/ferienwohnungen-ferienhaeuser-italien/
RewriteRule (.*) example.de/ferienwohnungen-ferienhaeuser-italien/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^example.com/italien-unterkuenfte/
RewriteRule (.*) example.de/italien-unterkuenfte/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.example.com/italien-unterkuenfte/
RewriteRule (.*) www.example.de/italien-unterkuenfte/$1 [L,R=301]

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch