• Moved a client’s live site (and their custom theme) into XAMPP on Mac OSX, and have no trouble with viewing any part of wp-admin and the static homepage, but all other links take me back to localhost/dashboard.
    I’ve tried various things based on the suggestions in all seemingly related support posts, etc, but no luck.
    1. This is strictly a website with no blog and (so?) it appears they have removed the permalinks setting screen, so can’t try that change/update direction.
    2. All urls appear correct upon hover
    3. Site and Home locations in the option tables (wp and custom theme), as well as all URLs in the DB and wp-config were changed to https://localhost/wp-install_folder_name/…
    4. A sample of the site that does work on a rental server is at testing2.swimex.jp, so it seems to be related to the localhost environment, but I do have another test site in another htdocs folder that works w/o any trouble, so it appears to only be this setup.
    Anyone have any suggestions? Any further info required?

Viewing 1 replies (of 1 total)
  • When I do this I use the “VirtualHost” technique described here:
    https://httpd.apache.org/docs/2.2/vhosts/name-based.html
    I then EXPORT the database from client’s server and IMPORT it into my own mySQL, the wp-config.php file has to be updated to match the database name / user / password for my localhost database.
    I use the exact same client’s URL, and set my hosts file, details here:
    https://en.wikipedia.org/wiki/Hosts_%28file%29
    to map this name to my LAMPP server.

    I can then switch between accessing the client’s internet hosted website and my localhost copy by commenting / un-commenting their entry in my hosts file.

    Make sure you also download and examine the .htaccess file.

    Using this technique the website barely knows that it has moved.

Viewing 1 replies (of 1 total)
  • The topic ‘Links under localhost result in localhost/dashboard’ is closed to new replies.