Title: Blocked when using SSL
Last modified: August 21, 2016

---

# Blocked when using SSL

 *  [ls5302](https://wordpress.org/support/users/ls5302/)
 * (@ls5302)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/)
 * Hi,
 * Small issue with viewing pages via HTTPS.
 * When you use:
 * wp_register_script @ line 194
    wp_enqueue_style @ line 322 wp_enqueue_style @
   line 369
 * These get blocked when a page is access via https.
 * May I suggest using https for the first two, and using site_url() for the third.
 * Kind regards,
 * Lukasz
 * [http://wordpress.org/plugins/wp-ui/](http://wordpress.org/plugins/wp-ui/)

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

 *  Thread Starter [ls5302](https://wordpress.org/support/users/ls5302/)
 * (@ls5302)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/#post-4068856)
 * or rather home_url().
 *  Thread Starter [ls5302](https://wordpress.org/support/users/ls5302/)
 * (@ls5302)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/#post-4068895)
 * The last one is a lot more complicated:
 * The URL:
 * `https://romseyhockey.org.uk/?wpui-css=css&ver=3.6`
 * results in a 301 redirect to:
 * `http://romseyhockey.org.uk/?wpui-css=css&ver=3.6`
 * I have no idea where this is happening in WP. 🙁
 *  Thread Starter [ls5302](https://wordpress.org/support/users/ls5302/)
 * (@ls5302)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/#post-4068947)
 * The 301 redirect is being done by the better-wp-security as the “page” `http://
   romseyhockey.org.uk/?wpui-css=css&ver=3.6`.
 *  Thread Starter [ls5302](https://wordpress.org/support/users/ls5302/)
 * (@ls5302)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/#post-4068952)
 * I have fixed my issue of mixed content ( http / https ) by defining an additional
   method in the wpUI class.
 *     ```
       <br />
       function wpui_cancel_redirect( $location, $status )<br />
       {<br />
         $query = get_query_var( 'wpui-css' );<br />
         if ( 'css' == $query ) {<br />
           return false;<br />
         }<br />
         else<br />
         {<br />
           return $location;<br />
         }<br />
       }<br />
       ```
   
 * and inserting:
 * `add_filter( 'wp_redirect', array( &$this, 'wpui_cancel_redirect' ), 10, 2 );`
 * on line 71 in the class _constructor_.
 * This basically cancels wp_redirection when the “wpui-css=css” is in the URL.
 * I know this is only an issue with HTTPS enabled pages please consider adding 
   to trunk.
 * Kind regards,
 * Lucas
 * PS Great plugin – which is why I have gone to the effort of this my mixed content
   issue. 🙂

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

The topic ‘Blocked when using SSL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ui_dda563.svg)
 * [WP UI - Tabs, Accordions, Sliders](https://wordpress.org/plugins/wp-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ui/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [ls5302](https://wordpress.org/support/users/ls5302/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/blocked-when-using-ssl/#post-4068952)
 * Status: not resolved