From www.example.com to www.example.de
- multinet24
-
Topic Author
- Offline
- New Member
-
Less
More
- Thank you received: 0
15 years 4 weeks 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]
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.