Can Access Dashboard, But Visit Site Does Not Work

  • Unknown's avatar

    I have a website on my local server using MAMP. I changed the name of the website in the “General Settings” section of the dashboard from “http://localhost:8888/wordpress” to “http://localhost:80/wordpress” and was then unable to access the dashboard or the site.

    I added 2 lines of code to the ‘wp-config.php’ file to hardcode the address and site address, and then went to “localhost:80/phpmyadmin” and changed the values in ‘wp-option’ to the correct site name.

    I was able to access the dashboard, but now when I press “Visit Site” an error message pops up.

    “This site can’t be reached.
    localhost refused to connect.
    ERR_CONNECTION_REFUSED”

    How do I fix this issue?

  • Unknown's avatar

    EDIT: Fixed.

    Cleared browser cache in addition to the database modifications.

  • The topic ‘Can Access Dashboard, But Visit Site Does Not Work’ is closed to new replies.