• Resolved sangredeespana

    (@sangredeespana)


    I have downloaded the DB and the files and have installed XAMPP on my local machine. I have placed all the files where they need to be. I can get to the index page of my site on my local machine but once I try getting to the backend it redirects out to the live site (URL). I have looked all over, cant find anything in the htaccess page… so I assume it is settings in the DB?

    How do I alter the files or DB so that I can have a fully functioning site offline on my computer?

    Right now to access the index page i the browser I am using localhost/test/index.php once I put int localhost/test/wp-admin it redirects out to the live site I have disabled under maintenance.

    Trying to alter some things on the theme but running into storms in my area and the internet going down frequently. This way I can do all my CSS corrections offline and simply upload the new CSS files…

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Dion

    (@diondesigns)

    My guess is that you’ll need to add something like the following two lines to your localhost’s wp-config.php file:

    define('WP_SITEURL', 'https://localhost/test');
    define('WP_HOME', 'https://localhost/test');

    Alternately, you can use phpMyhAdmin to edit the values of siteurl and home to the appropriate URLs in the wp_options table.

    Thread Starter sangredeespana

    (@sangredeespana)

    Thanks. I did the first part… Should I do the second part and if so.. do I just find every instance and change? Thanks

    Thread Starter sangredeespana

    (@sangredeespana)

    Hmmm. I did the first part… now I get this: It briefly said something about updating the DB… then went to this.

    Briefly unavailable for scheduled maintenance. Check back in a minute.

    Thread Starter sangredeespana

    (@sangredeespana)

    Well I got it up and running… but here is the strange thing. Some of the plugins I am currently using online do not seem to work offline… plus some of the plugins I deleted but show up as old versions on the XAMPP offline site I have… this was a direct download of the db and files from the host. Is this examplainable? Strange. The big one is it keeps saying woocommerce version is OLD when its not. I dont think Ill be able to use the offline version to do really anything if half the plugins dont operate offline. Thoughts on this? Thanks.

    Dion

    (@diondesigns)

    If you are using a cache plugin, you might want to purge it to insure the localhost site is synchronized with the database.

    Otherwise, this issue could occur if XAMPP is using a newer versions of PHP than on your live site, and/or it is using a different set of PHP extensions. You should ideally be using the same version of PHP and the same set of PHP extensions.

    Thread Starter sangredeespana

    (@sangredeespana)

    Decided it was too much of a PIA… subscriptions would not work… etc. on a local host site. Thanks for the help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using XAMPP and having site on local system – wants to redirect to live site’ is closed to new replies.