Title: Localhost import error
Last modified: September 3, 2024

---

# Localhost import error

 *  Resolved [beknowin](https://wordpress.org/support/users/beknowin/)
 * (@beknowin)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/localhost-import-error/)
 * I have used AIOWP many times but had this error for the first time.
 * I am trying to import a file to a new WP installation on localhost.
 * When I attempt to import the migration zip file I get the error “This site can’t
   provide a secure connection” and it fails
 * How can i fix this please.
 * The site I am importing is from a live website with SSL to a localhost instance
   in case that makes a difference

Viewing 1 replies (of 1 total)

 *  Plugin Author [Yani](https://wordpress.org/support/users/yaniiliev/)
 * (@yaniiliev)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/localhost-import-error/#post-18037352)
 * It sounds like the localhost server is not properly configured. Here’s how you
   can try to fix the issue:
 * 1. Reinstall WordPress: Ensure that your localhost WordPress installation is 
   set up correctly. When setting up on localhost, make sure that the site is using`
   http` instead of `https`.
 * 2. Update WordPress URL Settings:
    – Go to your WordPress dashboard (if accessible).–
   Navigate to **Settings > General**. – Change both the “WordPress Address (URL)”
   and “Site Address (URL)” from `https://` to `http://` if they are still set to`
   https`.
 * 3. Disable SSL in `wp-config.php`:
    – Open your `wp-config.php` file. – Add the
   following lines to force WordPress to use `http`:
 *     ```
       define('FORCE_SSL_ADMIN', false);
       $_SERVER['HTTPS'] = 'off';
       ```
   
 * 4. Clear Browser Cache: Sometimes the browser can cache redirects or SSL settings.
   Clear your browser cache and try the import again.
 * 5. Try a Different Browser: If the error persists, try importing the backup using
   a different browser.
 * After trying these steps, your localhost should be properly set up for an import
   without SSL complications.

Viewing 1 replies (of 1 total)

The topic ‘Localhost import error’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-migration/assets/icon-256x256.png?rev=2458334)
 * [All-in-One WP Migration and Backup](https://wordpress.org/plugins/all-in-one-wp-migration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-migration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-migration/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-migration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-migration/reviews/)

## Tags

 * [Secure Connection](https://wordpress.org/support/topic-tag/secure-connection/)

 * 1 reply
 * 2 participants
 * Last reply from: [Yani](https://wordpress.org/support/users/yaniiliev/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/localhost-import-error/#post-18037352)
 * Status: resolved