• Hi guys. I have a website that I have made a copy of to run it at my localhost. I’ve exported the database as SQL file, and i’ve fetched all files in the wordpress installation by using filezilla ftp client. I have modified the value of the database fields wp_options.siteurl and wp_options.home putting the url ‘localhost / tve’ since I am trying to run the website on my localhost, but if i visit ‘localhost/tve’ it adds ‘https://’ at the beggining of the URL. I don’t know if it has something to do with not being able to log into my dashboard, or viewing my website. Any suggestion?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The siteurl and home are full addresses (with the protocol, http or https), eg https://example.com

    And it appears your LIVE website uses HTTPS and you simply replaced example.com with localhost in the local installation.

    If my intuition is correct, this will mean siteurl and home are now https://localhost — hence the problem you’re seeing.

    Hi

    it might be possible that your website has non https to https redirect in place using .htaccess file. so, please try removing that line from .htaccess.

    Also, copying website this way often creates problem, so I would suggest you to use Duplicator plugin to create package on online website and install it on local system using simple wizard which takes care of all basic things including changing live website urls in database.
    Below is the url to plugin for reference:

    https://wordpress.org/plugins/duplicator/

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem while migrating my web site from remote server into my localhost’ is closed to new replies.