How do I change the domain name within WordPress?

Asked by:
LLFiggs
Time:
2012-08-25 3:18 am
Category:
Website Troubleshooting
Hits:
227
Can't delete my previous question; so I'm editing it to show the answer in case it helps someone else.

I copied a website to a different domain, and the website didn't use the new url. I finally found an answer. I needed to go into the WP-config.php file and add 2 lines after DB-Collate to point the website to the new url.

define('WP_HOME','http://mynewurl.com');
define('WP_SITEURL','http://mynewurl.com');


So Issue resolved.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

bradm
2012-08-27 8:48 pm
Hi LLFiggs,

Thanks for posting the solution to your problem! I checked our Support Center to see if we had this content listed. I did find it, but it was under our article on using WordPress with your temporary URL.

Glad to see you were able to figure this one out though. If there is anything we can help with, just ask, we're happy to lend a hand.

Thanks!
- Brad

You must login before you can post a comment about this answer.

Like this Question?

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. my email is being rejected
  2. Can I run the FiverrScript on my hosting
  3. SQL database password

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.