Title: Using https for bit.ly URLs
Last modified: January 12, 2018

---

# Using https for bit.ly URLs

 *  Resolved [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * (@hatschiii)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/using-https-for-bit-ly-urls/)
 * There is a good documentaton how to use bitl.y as a link shortener
 * [https://www.addtoany.com/buttons/customize/wordpress/link_tracking](https://www.addtoany.com/buttons/customize/wordpress/link_tracking)
 *     ```
       a2a_config.track_links = 'bitly';
       a2a_config.track_links_key = 'addtoany|R_cc222333444555'; // username|API key delimited by |
       ```
   
 * The result is a link like [http://bit.ly/xyz123](http://bit.ly/xyz123)
    If I 
   change the link manually in the adressbar of my browser to [https://bit.ly/xyz123](https://bit.ly/xyz123)
   it is also working.
 * Is there a chance to modify the above code that addtoanny uses https instead 
   of http?

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

 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/using-https-for-bit-ly-urls/#post-9853493)
 * Bitly doesn’t offer the option, and they _really should_ be generating HTTPS 
   short URLs by default.
 * Beginning tomorrow AddToAny will automatically convert Bitly short URLs to HTTPS
   by default.
 *  Thread Starter [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * (@hatschiii)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/using-https-for-bit-ly-urls/#post-9854484)
 * WOW !!! That’s great, thanks for the quick reply and the quick solution.
 * I have had several people comming up with a security warning when they clicked
   on an [http://bit.ly/xyz](http://bit.ly/xyz) link to my site wich is on https.
 * Thanks again, now it’s perfect!

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

The topic ‘Using https for bit.ly URLs’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [hatschiii](https://wordpress.org/support/users/hatschiii/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/using-https-for-bit-ly-urls/#post-9854484)
 * Status: resolved