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 7786189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:22:34+00:00 2026-06-01T20:22:34+00:00

I have two domains example.uk.net and example.co.uk – the example.uk.net has been in use

  • 0

I have two domains example.uk.net and example.co.uk – the example.uk.net has been in use since the website was started but i want to change over to the .co.uk version now – both domains are currently pointing to the same IP/sever – you see the same website on both domains…

Now i know i need to 301 redirect from the .uk.net to the .co.uk but i’ve read that it is best to do this page by page to retain google rankings/listings and also it is best practise anyway now i just can’t seem to get this working as both domains point to the same site i can’t use rewrite rules in the htaccess file such as…

Redirect 301 /get-a-quote/ http://example.co.uk/get-a-quote/

i also seem this piece of code on here that did seem to work but only for the main page, not any sub pages also it still doesn’t work on a per page basis only redirecting the whole site…

RewriteCond %{HTTP_HOST} !^example\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://example.co.uk$1 [R=301,L]

If anyone could help me out that would be brilliant or if someone has handled something similar in the past – any pointers would be awesome…

Thanks

  • 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-06-01T20:22:35+00:00Added an answer on June 1, 2026 at 8:22 pm

    You were missing a /:

    RewriteCond %{HTTP_HOST} !^example\.co\.uk$ [NC]
    RewriteRule ^(.*)$ http://example.co.uk/$1 [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have two domains, example.com and example.net · We want every request to example.net
I currently have an ASP .NET MVC site that has two domains pointing to
I have a hotel with two domains. Now the customer want a redirect: domain1.dk/folder/
What's the best way to have two websites (asp.net based) running on different domains
I have web application and two domains for it - example.com and example.ru example.com
Imagine, that you have two domains and you want them to interact through a
I have two domains for the same website. I have a single page on
I have two domains for example www.male.com and www.female.com which both point to the
I have two domains declared in my app. class Posts { String title String
I have two domains - abc.com and xyz.com. I have a CNAME that points

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.