How do I change the domain name within WordPress?

Asked by:
LLFiggs / 70 Points
Time:
2012-08-25 6:18 am EST
Category:
Website Troubleshooting
Hits:
609
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.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User

0

bradm
Staff
1,846 Points
2012-08-27 11:48 pm EST
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

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help 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.
}