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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:46:53+00:00 2026-06-14T06:46:53+00:00

I know there a million other posts like this but this ones a bit

  • 0

I know there a million other posts like this but this ones a bit specific.

Basically I have an old site that has been dead, just made it live again and theres still a few old links in Google. I want to do something in the htaccess that will 302 redirect ALL pages and the site to my new domain. for example I need:

http://www.oldsite.com > http://www.newsite.co.uk

oldsite.com > http://www.newsite.co.uk

http://www.oldsite.com/?color=red > http://www.newsite.co.uk

http://www.oldsite.com/?color=red&size=large > http://www.newsite.co.uk

http://www.oldsite.com/page > http://www.newsite.co.uk

http://www.oldsite.com/something.html > http://www.newsite.co.uk

Any idea how to do this?

  • 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-14T06:46:54+00:00Added an answer on June 14, 2026 at 6:46 am

    You’re right that a .htaccess file is the answer.

    RewriteEngine on
    RewriteRule .* http://www.newsite.co.uk/? [R=301,L]
    

    As you want to redirect everything, no RewriteCond required.
    Believe you’ll want it 301’ed though if you want Google to follow these

    Edit: Have added ? to the end of the domain to redirect to. This will remove the current query string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there have been a million questions asking this, but mine is different.
I realize there's a million of these posts but none of them have helped
I know there is a lot on this topic but I can't get any
I know there are a lot of questions around on this subject, but I've
I know there are a million ASP.NET hosting options, but what are the premium
I know that this has been asked a million times before, but nothing that
This may not seem like a development question but there is a link. I
I know this topic has been pounded as I have read gillions of posts
I know there have been many questions on grid and pack in the past
I know there are a lot of similar questions on SF, but I think

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.