Support » Localhost Installs » Changed url in wordpress dashboard and can't log in anymore

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you trying to fix the URL for a local installation in MAMP or for a live site on a server somewhere else?

    i’m trying to fix the url for local installation in MAMP. i read it online that i can edit function.php via FTP, so i got FileZilla to do that, tried to connect on it but it said Connection attempt failed with “ECONNREFUSED – Connection refused by server”.

    i’m trying to fix the url for local installation in MAMP.

    You do not need FileZilla to do that. I believe /htdocs/ is your “root” folder where you will find your WordPress installation, and you can get there with your computer’s own file manager or explorer or whatever just like for any other file there on your local machine. If you find /wordpress/ inside /htdocs/, then you are looking for /htdocs/wordpress/wp-config.php for some things and other files for other things. The functions.php file you have mentioned will be inside a theme folder inside /htdocs/wordpress/wp-content/themes/, but I suggest you not go there and then let us try to help you in a different way.

    You will know the path you need to use after you have found wp-config.php, then here is some code for fixing the URL in your database:

    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-*/
    /** @ near top of wp-config.php /*toggle on/off*
    define('WP_HOME','http://domain.com');
    define('WP_SITEURL','http://domain.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-*/

    OMG!!! thank you soon much leejosepho, it works!!! :*

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changed url in wordpress dashboard and can't log in anymore’ is closed to new replies.