domain redirection on every link
-
mike369hq
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 6 months ago #6121
by admin
This is better done with .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.hu/$1 [R=301,L]
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
mike369hq
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
7 years 6 months ago #6122
by mike369hq
Hi Luigi,
Thank you for your fast help, I tried this solution, but unfortunately always falls back to the base domain instead of the link with same end (so domain.com/something leads to domain.hu).
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 6 months ago #6124
by admin
The $1 should avoid this. Can you post your config here?
Please Log in or Create an account to join the conversation.
-
mike369hq
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
7 years 6 months ago #6126
by mike369hq
There was a server-side redirect that I didn't notice, now your solution works as charm.
Thank you again for your kind help, have a nice day
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 6 months ago #6127
by admin
The following user(s) said Thank You: mike369hq
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds