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

  • Home
  • SEARCH
  • 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 922089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:58:17+00:00 2026-05-15T18:58:17+00:00

I recently migrated a WordPress site to a new server and new domain name.

  • 0

I recently migrated a WordPress site to a new server and new domain name. To redirect traffic from the old site to the new, I put in place a simple one-line .htaccess file:

Redirect 301 / http://www.newsite.com/

Now, however, the client wants access to the old site. Is there a way that I can let one person in and redirect everyone else to the new site?

  • 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-15T18:58:18+00:00Added an answer on May 15, 2026 at 6:58 pm

    If the client has a (relatively) static IP address, you could do something like this in place of what you currently have:

    RewriteEngine On
    
    # Replace with the appropriate IP address
    RewriteCond %{REMOTE_ADDR} !=192.168.0.1
    RewriteRule .* http://www.newsite.com%{REQUEST_URI} [R=301,L]
    

    Alternatively, you might be able to do something like this…

    RewriteEngine On
    
    RewriteCond %{THE_REQUEST}  !\?noredirect
    RewriteCond %{HTTP_REFERER} !^http://www\.oldsite\.com
    RewriteRule .* http://www.newsite.com%{REQUEST_URI} [R=301,L]
    

    And then (assuming their browser sends the referrer) they could access the old site at http://www.oldsite.com/?noredirect and hopefully any subsequent links they clicked after that would work correctly without redirecting to the new site. I didn’t test this though, so I may have overlooked something.

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

Sidebar

Related Questions

I've recently migrated my CI server from an old version of CruiseControl to Hudson.
I recently migrated a Wordpress network of two sites from a local MAMP server
Fairly exotic it seems to me. We recently upgraded/migrated from Windows Server 2003 to
I recently migrated from a PostgreSQL database to a SQL Server database. To switch
I recently migrated a database from sql server 2005 to 2008 on windows server
i recently migrated my whole DB from myisam to innodb. I am fairly new
We've recently migrated our systems from Sun Java 5 to Java6 server VM (specifically,
We recently migrated our Multi-domain magento setup from a shared host to a dedicated
I just recently migrated from a linux host to a dedicated server with windows
I recently migrated from rails 2 to Rails 3 and thus got the new

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.