• I changed the WordPress URL to netw8rk.com/wp and it has destroyed my site and I am unable to access any of the dashboard to correct….any help would be massively appreciated….

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should be able to fix that fairly easily by temporarily adding some code either near the top of wp-config.php or in your active theme’s functions.php:

    Select and edit one pair of lines or the other, then temporarily place a slash after /*toggle on/off* just above them to un-comment them.

    /*-either-*/
    /* tell database to recognize and use http://netw8rk.com
    /** @ near top of wp-config.php /*toggle on/off*/
    define('WP_HOME','http://netw8rk.com');
    define('WP_SITEURL','http://netw8rk.com');
    /*-or-*/
    /** @ near top of wp-config.php /*toggle on/off*
    define('WP_HOME','http://www.domain.com');
    define('WP_SITEURL','http://www.domain.com');
    /*-end-*/
    /*-either-*/
    /* tell database to recognize and use http://netw8rk.com
    /** @ near top of theme functions.php /*toggle on/off*/
    update_option('siteurl','http://netw8rk.com');
    update_option('home','http://netw8rk.com');
    /*-or-*/
    /** @ near top of theme/functions.php /*toggle on/off*
    update_option('siteurl','http://www.domain.com');
    update_option('home','http://www.domain.com');
    /*-end-*/

    edit: I just made the edit for you, so the above are good-to-go.

    Thread Starter Siddycent

    (@siddycent)

    That is amazing – it worked!!!

    Thank you so much for your help!!!!

    Do I now need to delete that code or do I just leave it there?

    Thanks again…… I felt sure I was doomed.

    Kind regards,

    Dudley

    You can leave it there, if you wish, just remove the slash from the end of ~~~/*toggle on/off*/ to turn those lines back to inactive comments.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changed WordPress URL’ is closed to new replies.