Support » Localhost Installs » After Database Import 404 Not Found Error – But Can Access Admin

  • Resolved sonofadoc

    (@sonofadoc)


    I am setting up a Dev environment locally (MAMP/MySql). I also have a Testing environment on my webhost. I exported the database from my Testing WP site and imported it into my Dev WP site. I am able to login to the admin, but the site url cannot be found either from the admin panel or via the address bar. I suspect there is something in the database I need to change, but can’t figure out what.

    I have changed the “Home” and “Site” urls in the wp_options table in the database and all of the correct DB_User DB_Password and DB_Name in the wp-config.php file. I can’t figure why I can open the admin but the site url cannot be reached.

    `# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /www/bigmesses/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /www/bigmesses/index.php [L]
    </IfModule>

    # END WordPress

    • This topic was modified 5 months, 3 weeks ago by  sonofadoc.
    • This topic was modified 5 months, 3 weeks ago by  sonofadoc.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    but the site url cannot be found

    What’s the site url?

    localhost/www/bigmesses/ If I type into the address bar localhost/www/bigmesses/wp-login.php I’m able to login to the admin. But localhost/www/bigmesses/ should open to the home page but it doesn’t. I instead get the 404 error.

    • This reply was modified 5 months, 3 weeks ago by  sonofadoc.
    • This reply was modified 5 months, 3 weeks ago by  sonofadoc.
    Moderator t-p

    (@t-p)

    This is the error I get in FF:

    Unable to connect
    
    Firefox can’t establish a connection to the server at localhost.
    
        The site could be temporarily unavailable or too busy. Try again in a few moments.
        If you are unable to load any pages, check your computer’s network connection.
        If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

    Well, you would wouldn’t you since you are not connected to my “localhost” server.

    You helped me solve my problem. Just for ducks I went into FF and entered the URL and it loaded the home page right up. It turned out it was a caching issue in Chrome. I just cleared the cache and everything works. Chrome always does that to me! Thanks for your help.

    Moderator t-p

    (@t-p)

    Glad to know you got it sorted 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.