Changing WordPress Site URL Address in Settings

Change URL

I was working between localhost/live sites. I wasn’t thinking so I thought the localhost site was the live site so for some reason I accidentally change the site URL address in settings. The result: the localhost site crash and I can’t log into WordPress.

Edit wp-config.php

Add this to your wp-config.php that came with your WordPress installation at the bottom:


Make sure to change the two “”. To be clear, this is one of many ways to change your URL address in Settings. It’s not a fix, just a batch. Hope this save some headaches.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>