Title: Force to use https
Last modified: May 5, 2017

---

# Force to use https

 *  Resolved [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/)
 * Good day! Is there a way to use only https? On server https made with 301 rules
   so your plugin think website is http and not show https link.
    -  This topic was modified 9 years, 1 month ago by [alex1305](https://wordpress.org/support/users/alex1305/).

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/force-to-use-https/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/force-to-use-https/page/2/?output_format=md)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9101960)
 * well, lyte uses the wordpress is_ssl() function, so if wordpress doesn’t know
   it’s on https then lyte doesn’t either. you can try a code snippet like this 
   one to hack your way around that;
 *     ```
       add_filter('lyte_settings','lyte_https');
       function lyte_https($in) {
         $in['scheme']="https://";
         return $in;
       }
       ```
   
 * hope this helps,
    frank
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9105424)
 * Thanks for answer! But not helped, i edit code in plugin to
    `$lyteSettings['
   scheme'] = "https" ;` I deactivated and activated plugin after edit. But it not
   helped too.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9105647)
 * can you share a URL where I can see what is going wrong [@alex1305](https://wordpress.org/support/users/alex1305/)?
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9105663)
 * offcource [https://detiam.ru/test/](https://detiam.ru/test/)
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9106124)
 * hmm, the code I gave earlier was wrong (sorry bout that), should be:
 *     ```
       add_filter('lyte_settings','lyte_https');
       function lyte_https($in) {
         $in['scheme']="https";
         return $in;
       }
       ```
   
 * can you change that + clear Lyte’s cache?
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9106245)
 * Not helped 🙁
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9106328)
 * ok;
    * can you make sure wp-youtube-lyte.php is back to it’s original state (
   you made a change there, right?) * can you change the video on that testpage,
   or add another one?
 * frank
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9106381)
 * I deleted then installed plugin to be sure all by default and changed video to
   new one. But it not helped. Maybe i should change in DB options of plugin?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9106567)
 * OK, the links in the noscript tags are not correctly HTTPS, so that works. now
   for the thumbnail URL, that is fetched from the YouTube API, I’ll have to chech
   under which conditions they are returned with HTTP vs HTTPS, I’ll report back
   here when I know more 🙂
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9107073)
 * OK, lets try enforcing HTTPS on youtube thumbnails this way;
 *     ```
       add_filter('lyte_match_thumburl','https_thumburl');
       function https_thumburl($thumb) {
               return str_replace("http://","https://",$thumb);
       }
       ```
   
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9107597)
 * Its working! You are really awesome! Big thanks. Autoptimize awesome plugin too.
   Using it and loving it.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9107620)
 * great! have fun [@alex1305](https://wordpress.org/support/users/alex1305/) 🙂
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9108046)
 * Looks like on mobiles not working:).
    I tryed to resolve by this code
 *     ```
       add_filter('lyte_do_mobile','lyte_on_mobile',10,0);
       function lyte_on_mobile(){
           return true;
       }
       ```
   
 * but it not helped.
    -  This reply was modified 9 years, 1 month ago by [alex1305](https://wordpress.org/support/users/alex1305/).
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9108073)
 * well, before playing with code; can you describe what is not working, what do
   you see?
 *  Thread Starter [alex1305](https://wordpress.org/support/users/alex1305/)
 * (@alex1305)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/#post-9108198)
 * Wow, crtr+shft+m allow to inspect in chrome mobile version. Problem was not in
   your plugin. I am sorry. All resolved!:))))

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/force-to-use-https/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/force-to-use-https/page/2/?output_format=md)

The topic ‘Force to use https’ is closed to new replies.

 * ![](https://ps.w.org/wp-youtube-lyte/assets/icon-128x128.png?rev=1836005)
 * [WP YouTube Lyte](https://wordpress.org/plugins/wp-youtube-lyte/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-youtube-lyte/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-youtube-lyte/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-youtube-lyte/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-youtube-lyte/reviews/)

 * 16 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/force-to-use-https/page/2/#post-9108252)
 * Status: resolved