[Resolved] xampp setup with two separate sites linking problems

Home Forums Support [Resolved] xampp setup with two separate sites linking problems

Home Forums Support xampp setup with two separate sites linking problems

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #405175
    Charles

    Hi Tom,

    I am revamping two separate websites. I recently used and really liked GP Premium for a client, so I bought my own premium copy and I’m going to use it for both of these sites.

    I’ve set them up in xampp but I’m having odd linking problems. On both sites, top menu items link properly to localhost, but all of the submenu items link to the live website.

    On one of the sites there are no thumbnails visible or localhost website images visible.

    On the other one the thumbnails are visible in the Media Library but they don’t appear on the localhost website.

    I have a third site setup in xampp which does not use the GP theme it works OK (for the most part – a few random missing images but it’s good enough for a test platform).

    I have the following code in wp-config.php:

    /** don't log into live site **/
    define('WP_HOME','http://localhost/serra/');
    define('WP_SITEURL','http://localhost/serra/');

    and I even tried this recommendation in httpd-vhosts.conf in xampp:

    #this is the first vhost address in XAMPP
    <VirtualHost *:8080>
        DocumentRoot "C:/vhost/scoop/"
        ServerName php.localhost
        SetEnv NS_ENV variable_value
    </VirtualHost>
    
    #this is the second vhost address in XAMPP
    <VirtualHost *:8080>
        DocumentRoot "C:/vhost/serra/"
        ServerName php.localhost
        SetEnv NS_ENV variable_value
    </VirtualHost>
    
    #this is the third vhost address in XAMPP
    <VirtualHost *:8080>
        DocumentRoot "C:/vhost/pnto"
        ServerName laravel.localhost
    </VirtualHost>

    scoop is my third non-GP site, serra and pnto are my GP ones.

    I’m using a PC Windows 10, and I’ve also ensured that all the files are read/write. I think that covers all of the advice I’ve been able to find about this online.

    Any idea how to make this work without doing major recoding? It’s not going to be worth it to have a local build if it will be a nightmare to put it online once it’s ready.

    Thanks
    Charles

    #405324
    Tom
    Lead Developer
    Lead Developer

    Hi Charles,

    Have you migrated these sites from one install to another, or are they completely fresh installs?

    It sounds like an incomplete migration – as things like menu item links and features images are dealt with internally by WordPress.

    #408548
    Charles

    Yes, I migrated them from live sites so I can work on them locally. It’s looking like this is not a very practical way to work. It’s taking way too much time to resolve, and what are the problems going to be when I put the revamped site live if it’s this difficult to work on locally.

    One of the sites is southeglinton.ca which I refer to in this post about masonry:
    https://generatepress.com/forums/topic/recommended-masonry-layout-for-pages-read-more/#post-408544

    I followed all the instructions about creating a local clone online. Basically, changing the wp-config.php file to the local address should point everything there but it doesn’t. I just wondered if GP menu had some hard coded URLs in the backend somewhere.

    I could create a clone site on another URL but I was worried about Google picking it up.

    Thanks
    Charles

    #408760
    Tom
    Lead Developer
    Lead Developer

    Perhaps try using a plugin to handle the migration for you? These are a couple good ones:

    https://en-ca.wordpress.org/plugins/duplicator/
    https://en-ca.wordpress.org/plugins/all-in-one-wp-migration/

    They handle moving the files, database and even update the internal URLs for you.

    #409089
    Charles

    OK, thanks for your help Tom!
    Charles

    #409263
    Tom
    Lead Developer
    Lead Developer

    No problem! 🙂

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