Title: Contact Form 7 not working after HTTPS enable
Last modified: April 10, 2020

---

# Contact Form 7 not working after HTTPS enable

 *  Resolved [th87tran](https://wordpress.org/support/users/th87tran/)
 * (@th87tran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/)
 * Hi Friends,
 * I have just moved my site from HTTP to HTTPS. Everything works fine except the
   Forms (CF7) in my site. Those used to work perfectly before.
 * I found this code from function.php
 *     ```
       function https_chrome44fix() {
       		$_SERVER['HTTPS'] = false;
       	}
       add_action('init', 'https_chrome44fix',0);
       ```
   
 * If leaving this function running, my site crash but Forms work correctly at this
   point.
 * If i comment this function out, my site back to normal but Forms will be hang
   after click send button.
 * Please give me your advise.
 * Thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcontact-form-7-not-working-after-https-enable%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Takayuki Miyoshi](https://wordpress.org/support/users/takayukister/)
 * (@takayukister)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/#post-12656072)
 *     ```
       function https_chrome44fix() {
       		$_SERVER['HTTPS'] = false;
       	}
       add_action('init', 'https_chrome44fix',0);
       ```
   
 * What is this code supposed to do? Why did you add it?
 *  Thread Starter [th87tran](https://wordpress.org/support/users/th87tran/)
 * (@th87tran)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/#post-12658604)
 * Hi [@takayukister](https://wordpress.org/support/users/takayukister/)
 * This code is from our former web coding agent which maybe to fix a conflict with
   Chrome browser. But it also caused “redirect too many times” trouble while moving
   site to HTTPS. So i decided to turn it off since then.
 * I just tried another way to figure out where the issue come from (the above function
   still being off).
    Commenting out this code in .htaccess
 *     ```
       #Forcing HTTPS
       #RewriteEngine On
       #RewriteCond %{HTTPS} off
       #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       ```
   
 * Now i can access unsecured contact page [http://tictacwatch.com/contact/](http://tictacwatch.com/contact/)
   and sending form successfully.
 * The problem only occurs when my site in HTTPS, doesn’t it?
 * Thank you for your help.
 *  Thread Starter [th87tran](https://wordpress.org/support/users/th87tran/)
 * (@th87tran)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/#post-12666052)
 * Hi [@takayukister](https://wordpress.org/support/users/takayukister/)
 * i just enable some modules on Cpanel and now the forms are working well with 
   HTTPS.
 * Thank you so much for your support.
 *  Thread Starter [th87tran](https://wordpress.org/support/users/th87tran/)
 * (@th87tran)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/#post-12666056)
 * RESOLVED

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

The topic ‘Contact Form 7 not working after HTTPS enable’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 4 replies
 * 2 participants
 * Last reply from: [th87tran](https://wordpress.org/support/users/th87tran/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/contact-form-7-not-working-after-https-enable/#post-12666056)
 * Status: resolved