I need some advice,
I have 2 domains, http://www.example.co.uk and http://www.example.com.
http://www.example.com has a large js,php,mysql,flash library behind it with a CMS that I dont really want to have to upload again onto the .co.uk domain.
Assuming this is a fairly simple question, but how to I redirect users from the http://www.example.co.uk index page to the http://www.example.com index when they visit it?
I am a complete novice with this sort of thing so might need it broken down fairly simply!!!
Thanks
JD
Take your current index page on example.co.uk, which I will assume is called index.html, and add the following meta tag to the html header
To automatically redirect a visitor after 5 seconds. You should of course also display a message including a link to example.com, asking users to update their bookmarks, etc.
If on the other hand you want to redirect visitors immediately, you can do so in PHP with the header() function by putting the following code in a PHP index page (index.php in the root directory of your site):
Finally, you can do this at the server level in Apache with a .htaccess file by setting Rewrite rules. This is not generally appropriate for a novice, but if you know that .htaccess files are supported on your server and you aren’t using one there is no reason not to try this: