Title: redirection issue
Last modified: January 16, 2020

---

# redirection issue

 *  Resolved [meandron](https://wordpress.org/support/users/meandron/)
 * (@meandron)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/)
 * Hello all,
 * after having moved my site from http to https, I suffer from a single but yet
   serious CSS redirection I cannot resolve on my own.
 * Everything works fine except this call (css Stylesheet):
    [https://www.cameratavocale.de/wordpress/?action=kirki-styles&ver=3.0.45](https://www.cameratavocale.de/wordpress/?action=kirki-styles&ver=3.0.45)
 * Calling it (via wget), I get a 301 pointing to:
    [http://www.cameratavocale.de/wordpress/?action=kirki-styles&ver=3.0.45](http://www.cameratavocale.de/wordpress/?action=kirki-styles&ver=3.0.45)
 * So: https -> http – for whatever reason.
    Consequence: Mixed Content, CSS not
   loaded
 * The stylesheet contains all my custom theme configuration (bulk pro), so the 
   design is broken.
 * Do you have any idea how to track down this issue? Or is there an easy workaround
   for this?
 * Help would be highly appreciated – this issue drives me mad….
 * Best,
    Matthias
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fredirection-issue-26%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [meandron](https://wordpress.org/support/users/meandron/)
 * (@meandron)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/#post-12340452)
 * I figured it out by myself:
 * The original URL was as follows (generated by Kirki):
    [https://www.cameratavocale.de/wordpress?action=kirki-styles&ver=3.0.45](https://www.cameratavocale.de/wordpress?action=kirki-styles&ver=3.0.45)
   Note the missing ‘/’ after wordpress!
 * I “hacked” it in:
    class-kirki-modules-css.php/enqueue_styles() From: add_query_arg(
   $args, site_url()), To: add_query_arg( $args, site_url() .’/’),
 * My site URL is as:
    [https://www.cameratavocale.de/wordpress](https://www.cameratavocale.de/wordpress)
   should it be: [https://www.cameratavocale.de/wordpress/](https://www.cameratavocale.de/wordpress/)?
 * Or is there an issue with Kirki?
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/#post-12341018)
 * The URL used there is generated using `site_url()` (can can be seen here: [https://github.com/aristath/kirki/blob/v3.0.45/modules/css/class-kirki-modules-css.php#L141-L146](https://github.com/aristath/kirki/blob/v3.0.45/modules/css/class-kirki-modules-css.php#L141-L146))
   
   Please check your site’s settings and make sure your site’s URL is defined everywhere
   correctly using https. That being said, that code shouldn’t even run at all on
   the frontend of your site, unless the theme you’re using has tweaked that behavior.
   You can try adding this code somewhere (for example the functions.php file of
   a child theme, or a php file in mu-plugins if that’s what you use):
 *     ```
       add_filter( 'kirki_output_inline_styles', '__return_true', 9999 );
       ```
   
 *  Thread Starter [meandron](https://wordpress.org/support/users/meandron/)
 * (@meandron)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/#post-12341609)
 * Thank you for your answer!
 * Just as I’m curious: What WP-function / code causes (or caused) the redirect?
   Then I could investigate further:
    I have already checked the DB: There is no“
   http” anywhere.
 * Site-Url is:
    [https://www.cameratavocale.de/wordpress](https://www.cameratavocale.de/wordpress)
 * I thought there must be no trailing “/” – but in this case, it is somehow necessary:
   Or is the problem caused by the fact, that the side’s base is in the “wordpress”
   folder, i.e. that it is not typical, as like:
    [https://www.cameratavocale.de](https://www.cameratavocale.de)?
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
    -  This reply was modified 6 years, 4 months ago by [meandron](https://wordpress.org/support/users/meandron/).
 *  Thread Starter [meandron](https://wordpress.org/support/users/meandron/)
 * (@meandron)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/#post-12352228)
 * Won’t dig any deeper…

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

The topic ‘redirection issue’ is closed to new replies.

 * ![](https://ps.w.org/kirki/assets/icon-256x256.jpg?rev=3518366)
 * [Kirki – Freeform Page Builder, Website Builder & Customizer](https://wordpress.org/plugins/kirki/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kirki/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kirki/)
 * [Active Topics](https://wordpress.org/support/plugin/kirki/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kirki/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kirki/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [meandron](https://wordpress.org/support/users/meandron/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/redirection-issue-26/#post-12352228)
 * Status: resolved