Title: HTTPS / HTTP Minify Protocol Specific URL
Last modified: August 20, 2016

---

# HTTPS / HTTP Minify Protocol Specific URL

 *  Resolved [michael_fcc](https://wordpress.org/support/users/michael_fcc/)
 * (@michael_fcc)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/https-http-minify-protocol-specific-url/)
 * I have setup WordPress to use protocol relative paths for css and js:
 * ex: **/wp-content/themes/responsive/style.css**
 * instead of: **[http://www.mydomain.com/wp-content/themes/responsive/style.css](http://www.mydomain.com/wp-content/themes/responsive/style.css)**
 * It works when minify is disabled, however when I enable it, the full path is 
   still present
 * ex:
    **[http://www.mydomain.com/wp-content/w3tc/min/b8ed3/default.include.18e191.css?e83a2c](http://www.mydomain.com/wp-content/w3tc/min/b8ed3/default.include.18e191.css?e83a2c)**
 * I need the minify to use protocol relative url like all other elements in my 
   wordpress because I have some pages that are HTTPS or switch to HTTPS with ajax
   and the css and js will not load because the minify forces the absolute url.
 * I would appreciate any help!
 * Thank you!
 * [http://wordpress.org/extend/plugins/w3-total-cache/](http://wordpress.org/extend/plugins/w3-total-cache/)

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

 *  Thread Starter [michael_fcc](https://wordpress.org/support/users/michael_fcc/)
 * (@michael_fcc)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/https-http-minify-protocol-specific-url/#post-3220396)
 * Ok so I found a solution:
 * in /wp-content/plugins/w3-total-cache/inc/define.php edit around line 467
 *  `return $url;`
 * to
 * `return "";`
 * This will ensure all css + js resources load as a protocol relative path (without
   the domain) so you can use mixed modes of http and https
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/https-http-minify-protocol-specific-url/#post-3220435)
 * The minify urls are changed on detection of SSL. Will look at adding protocall
   relative URLs to minify.
 *  Thread Starter [michael_fcc](https://wordpress.org/support/users/michael_fcc/)
 * (@michael_fcc)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/https-http-minify-protocol-specific-url/#post-3220436)
 * Thank you Fredrick!
 *  I look forward to this feature being implemented!

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

The topic ‘HTTPS / HTTP Minify Protocol Specific URL’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [michael_fcc](https://wordpress.org/support/users/michael_fcc/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/https-http-minify-protocol-specific-url/#post-3220436)
 * Status: resolved