• Resolved Matt

    (@nib101)


    Hi there, i’m totally stumped so if anyone can help then it would be very much appreciated.

    So here’s the story so far. I had to take over a site and create a local install from the live version. I went through the very helpful steps outline here:

    https://egalo.com/2012/05/15/clone-live-wordpress-to-local-env/

    I managed to get the front end up and running but I couldn’t log into the dashboard after running the sql script on the above post, so I managed to find a php script that did a find and replace on the site urls here:

    https://interconnectit.com/products/search-and-replace-for-wordpress-databases/comment-page-29/#comments

    I changed all instances of www.siteurl.com > www.localsiteurl.com and also siteurl.com > localsiteurl.com but now I get an error when trying to login saying:

    The requested URL /tmlogin/ was not found on this server.

    I found an example that said to add some code to the wp-config file which didn’t actually work, and now I can only access the site at localsiteurl.com and not www.localsiteurl.com, even after removing the code.

    Thanks in advance for all your help, i’m fairly new to this and it seems one problem fixed throws up two new ones!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You don’t use www on a local site. The URL is:

    https://localhost/name_of_folder_where_local_site_is_located

    Thread Starter Matt

    (@nib101)

    I fixed the problem by creating an htaccess file with the following code:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Requested URL not found plus not site at www’ is closed to new replies.