• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2669

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

Resetting Your WordPress Address & Site Address URL’s

If you ever change the WordPress Address (URL) or Site Address (URL) in your general settings, you might find you’re locked out of your site.

site-url

To restore your site, add the following 2 lines of PHP code to the end of your child themes functions file, change the url’s in the code to your own and reload your browser a couple of times.

Once you’ve fixed the problem, remove the 2 lines of code from your functions file.

If you’re setting up SSL and need to change the URL’s to https, you may try using a method which requires you change the URL’s in your General settings which can result in being locked out of the backend of your installation.

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems