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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:32:25+00:00 2026-05-31T23:32:25+00:00

So, I submitted an answer to this SO question about redirecting your site ,

  • 0

So, I submitted an answer to this SO question about redirecting your site, however I began to think about the intricacies of it, especially with Rody van Sambeek’s answer about finding all of your site’s URL’s and submitting a redirect for each one. I have never actually needed a 301, so I only know it academically. And I could not seem to find anything via numerous google searches. So, I was hoping that somebody who has a little more knowledge on redirects could answer this question:

How many 301 redirects are really needed when your base domain moves? Do you need just one for the base domain, which will be picked up for all of your links since it is the base? Or, do you, in fact, need to submit a 301 for each and every page?

Here is a very basic example:

Original setup:

  • http://www.mydomain.com
  • http://www.mydomain.com/About

New setup:

  • http://www.newdomain.com
  • http://www.newdomain.com/About

So, do I submit 2 301’s:

  • http://www.mydomain.com -> http://www.newdomain.com
  • http://www.mydomain.com/About -> http://www.newdomain.com/About

OR

do I need just one 301:

  • http://www.mydomain.com -> http://www.newdomain.com
  • 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-31T23:32:26+00:00Added an answer on May 31, 2026 at 11:32 pm

    If you move whole site, need to set up just one redirect, but one which will catch any path on old domain and redirect that to corresponding URL on new domain. For example in case of Apache it would be:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.olddomain\.com
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=permanent,L] 
    

    This will redirect www.olddomain.com/anything/at.all to www.newdomain.com/anything/at.all

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

Sidebar

Related Questions

So I saw this post which helped answer part of my question however now
I know this is quite a vague question -- sorry about that. If I
Ok, I've asked this question before but I didn't get a clear answer and
I've searched for an answer to this question and have been unable to find
This is probably a dumb question, but I can't find a definitive answer anywhere.
I'm a PHP beginner. I don't see the answer to this question in the
EDIT: looking for this: http://diminishing.org/extending-formtastic-with-a-sprinkle-of-jquery (If this works I'll answer my own question) I've
I just want to know whether there is a way to answer this question
I've checked other threads about this subject, but nothing really answers my exact question.
I've searched high and low both on Google and this site for an answer

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.