Forum Moderators: phranque
I have a site that I'm internationalising, and trying to do so by putting an invisible redirect from the local domain to the main site. I'd like the local domain to remain in the browser, as the site uses PHP to look at the current SERVER_NAME and keep the links/content in line.
I've tried many htaccess configurations but even though I've been doing this for months I just don't understand it. My htaccess is currently as follows:
RewriteEngine On
RewriteCond %{HTTP_HOST} example\.co.uk
RewriteRule (.*) http://www.example.com/$1 [L]
However while this may sort of work, it doesn't hide the redirect. Any ideas?
Many thanks,
Don
However the alternative seems to be to park the second domain as an alias. I did this through cPanel, resulting in the following line being added to the httpd.conf file:
ServerAlias example.co.uk www.example.co.uk
However having removed the example.co.uk account, it just shows a "There is no site at this address" cPanel screen.
I've restarted apache but no luck. Anyone know why a parked domain would do this?
Thanks,
Don
Jim