View Single Post
Old 02-14-2017, 06:35 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Harry, Hard code websites //URL or use your own redirect mapping.

Xlovecam.com websites will honor either a http or https GET request indefinitely. No 301's are necessary. http and https use seperate server ports.

Configuring HTTPS servers

Code:
server {
  listen 80;
  listen 443 ssl;
  # force https-redirects
  if ($scheme = http) {
    return 301 https://$server_name$request_uri;
  }
}
2 ways to do it in Nginx

You can 'booger a-patchy' this way they are saying ...
https://httpd.apache.org/docs/2.4/bind.html
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote