Hi folks,
hope someone can help... have recently moved servers and suddenly htaccess file doesn't work as it used to...
Have 4 domains;
1. ggg.eu
2. mmm.eu
3. ppp.eu
4. rrr.ie
And 4 subfolders on server...
1. eu_gg
2. eu_mm
3. eu_pp
4. eu_rr
The 4 domains are allocated for different sites - with each a slightly different interface - which all follow the same structure and have a header bar to switch inbetween the sites.
Basically what I'd like to happen is that when a user is e.g. at
http://www.ggg.eu/eu_gg/community/news.php
and wants click on a link to the folder
../../eu_mm/community/news.php
that then the URL in the browser address bar automatically adapts to
http://www.mmm.eu/eu_mm/community/news.php
instead of
http://www.ggg.eu/eu_mm/community/news.php
With the old host all was working fine, but since opening up the 4th domain with a different host and pointing the DNSs of the other 3 domains to the server of the 4th domain (with a different provider), it all doesn't work any longer.
Is there any step I have forgotten, or done something wrong?
Or do all domains need to be hosted with the same provider in order for this to work?
The HTaccess script that used is work is like this in each of the 4 subfolders:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^ggg\.eu
RewriteRule (.*)$ http://ggg.eu/eu_gg/$1 [R=permanent,L]