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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:30:18+00:00 2026-06-05T17:30:18+00:00

Two questions only: I have a website including a section of Blog in wordpress.

  • 0

Two questions only:

  1. I have a website including a section of Blog in wordpress. Now requirements are changed and my client wants me to make a blog section on a different domain. He wants the website and the blog on different domains. Yesterday I setup the blog on a different server but the problem is when I click on any post it takes to me to the post on the old domain. Any idea how can I fix that issue?

  2. Also we have sent out so many newsletters to our customers in which we have posted URLs of the old domain. Is it possible to redirect them to the post on the new domain and what is the process?

I really appreciate if you give me articles or tutorial links that can help me in this as I am not a PHP guy.

  • 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-05T17:30:19+00:00Added an answer on June 5, 2026 at 5:30 pm

    That’s an interesting stuff, so here’s how you should proceed –

    Solution to your first question is to replace the old domain with new one in the MySQL dump file. Before you proceed, please take the backup of your database, just in case you mess around. But this solution works the best, since I transfer client’s websites from my Devserver to the live servers ever now & then. Follow these steps –

    1. Open your new hosting’s cpanel or dump mysql file using the mysqldump command from shell
    2. Open this dump file in your favorite text editor and simply do find “http://old_domain.com” and
      replace with “http://new_domain.com” , it will replace the all the meta entries,post entries etc. Now save htis file.
    3. Truncate the database tables of the new domain’s database (do not worry, we have the backup)
    4. Import the SQL file which you saved in step 2, and you are done!

    Solution to your Second Question is to setup .htaccess redirect. I am sure you are using apache server, cause everyone does that 🙂 , it’s pretty easy to setup .htaccess redirect using which you can redirect all the visitors visiting old website to the new website URL. I used the following code on my blog few years back, and have a blogpost on how to setup apache redirect to new domain, just in case you want to know more about it.

    RewriteCond %{HTTP_HOST} ^.*old_domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.new_domain.com/$1 [R=301,L]
    

    Do let me know if something is unclear, I will try to clarify it.

    Cheers,

    Sachin Khosla

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

Sidebar

Related Questions

I have two questions: 1) I have a few global variables for my website
my client wants to play a flash video in their website. just to make
I have two questions concerning authentication of a intranet website and how to go
I have two questions. First, the MongoDB documentation constantly refers to using db.open() and
I have two questions regarding Pysandbox: How do I achieve the functionality of eval
I have two questions: 1) Whats the corresponding dbpedia resource for http://en.wikipedia.org/wiki/Portal:Current_events/Sports 2) How
I have a jQuery Mobile website I created for a friend/client of mine. It
Im making a asp.net(2.0) website. I have defined two resource files in the App_GlobalResources
I have a website where users submit questions (zero, one or multiple per day),
I am using Entity framework on a forum website and have two query examples

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.