Title: http versus https links
Last modified: August 20, 2016

---

# http versus https links

 *  Resolved [drewehart](https://wordpress.org/support/users/atlantislabs/)
 * (@atlantislabs)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/http-versus-https-links/)
 * So I have an SSL certificate for my WordPress site and both http and https work
   fine. My question is how do I code links in posts, etc., so that when someone
   clicks on a link within my site (an internal link), if they are using https the
   link will go to [https://page](https://page), or if they are using http, the 
   link will go to [http://page](http://page). When you code a link, you put one
   or the other and I want it to follow whatever the person is using. Not really
   a WP question as this would apply to any link on any site, but I am curious. 
   Many thanks in advance,
 * Drew

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 11 months ago](https://wordpress.org/support/topic/http-versus-https-links/#post-2849876)
 * You’d have to use relative URLs for that.
 * Instead of [http://domain.com/foo/bar/link/](http://domain.com/foo/bar/link/)
   it would be /foo/bar/link
 *  Thread Starter [drewehart](https://wordpress.org/support/users/atlantislabs/)
 * (@atlantislabs)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/http-versus-https-links/#post-2849896)
 * Thanks

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

The topic ‘http versus https links’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [drewehart](https://wordpress.org/support/users/atlantislabs/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/http-versus-https-links/#post-2849896)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
