Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6121731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:49:03+00:00 2026-05-23T15:49:03+00:00

I need some advice, I have 2 domains, www.example.co.uk and www.example.com. www.example.com has a

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:49:04+00:00Added an answer on May 23, 2026 at 3:49 pm

    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

    <meta http-equiv="refresh" content="5;url=http://www.example.com/">
    

    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):

    <?php
    header('Location: http://www.example.com/');
    ?>
    

    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:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(www\.)?example\.co\.uk
    RewriteRule (.*) http://www.example.com/ [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

----- PHP and mySQL ----- I have two quick questions need some advice. On
I need some advice in creating and ordering indexes in mongo. I have a
Experts - I need some advice in the following scenario. I have a configuration
I have been playing with Compact Framework lately and i need some advice. I
I need some advice from experts :) I will develop a website using PHP
I need some advice before I start. My PHP Skills are only 3 months
I need some advice. I have a web page and want to extend it's
I need some advice on how to model this simple categorization (?) example: I
I need some advice on a DB I'm working in. I have the DB,
I need some advice with the Java Print API. I have a program that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.