Title: Add https or http to URL
Last modified: August 23, 2019

---

# Add https or http to URL

 *  [Germont](https://wordpress.org/support/users/alergic/)
 * (@alergic)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/add-https-or-http-to-url/)
 * I searched like crazy for a plugin that adds Read more… and URL to the copied
   text, but none had a custom limit for the copied content.
    This one does that,
   but it does not add a https to the current URL, and with www URL, the link is
   not loaded on some browsers and some mobiles on facebook. Therefore I modified
   this line from the php file:
 * `$currentURL = $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];`
 * **‘[https://&#8217](https://&#8217);.** must be included before **$_SERVER**
 * `$currentURL = 'https://'.$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];`
    -  This topic was modified 6 years, 9 months ago by [Germont](https://wordpress.org/support/users/alergic/).
    -  This topic was modified 6 years, 9 months ago by [Germont](https://wordpress.org/support/users/alergic/).
    -  This topic was modified 6 years, 9 months ago by [Germont](https://wordpress.org/support/users/alergic/).

The topic ‘Add https or http to URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/read-more-copy-link.svg)
 * [Read More Copy Link](https://wordpress.org/plugins/read-more-copy-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/read-more-copy-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/read-more-copy-link/)
 * [Active Topics](https://wordpress.org/support/plugin/read-more-copy-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/read-more-copy-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/read-more-copy-link/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Germont](https://wordpress.org/support/users/alergic/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/add-https-or-http-to-url/)
 * Status: not a support question