Title: Website redirects to https after copying to localhost
Last modified: September 28, 2022

---

# Website redirects to https after copying to localhost

 *  Resolved [kasunbiz](https://wordpress.org/support/users/kasunbiz/)
 * (@kasunbiz)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/website-redirects-to-https-after-copying-to-localhost/)
 * Website always redirects to https after copying to localhost, how to disable 
   the this redirection

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/website-redirects-to-https-after-copying-to-localhost/#post-16054626)
 * Hi [@kasunbiz](https://wordpress.org/support/users/kasunbiz/), thank you for 
   reaching out. May I know if the Enforce SSL feature is enabled on your site? 
   If so, could you please disable it and see it helps? If not, please update your
   wp-config.php file and update the instances of force SSL code to:
    `define('FORCE_SSL_ADMIN',
   false);`
 * Ensuring that WP_HOME and WP_SITEURL are set to addresses that start with HTTP
   might also help:
 *     ```
       define('WP_HOME','http://localhost:8888');
       define('WP_SITEURL','http://localhost:8888');
       ```
   
 * I hope the above helps, and please let me know how it goes.
 *  Plugin Support [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * (@shanedelierrr)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/website-redirects-to-https-after-copying-to-localhost/#post-16071000)
 * Hi [@kasunbiz](https://wordpress.org/support/users/kasunbiz/), I hope the information
   provided helped resolve the issue. Since we haven’t received a response, I’ll
   mark this post resolved. If you still need some assistance, feel free to open
   a new support topic, and we’d be happy to assist. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Website redirects to https after copying to localhost’ is closed to new
replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [chandelierrr](https://wordpress.org/support/users/shanedelierrr/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/website-redirects-to-https-after-copying-to-localhost/#post-16071000)
 * Status: resolved