cornishpirate
New Pleskian
My host recently upgraded me from Plesk 11 to 12.5 - and what a fantastic improvement for my PHP based ecommerce site. However, I am a novice at Nginx.
I am poised to move my site to https, but Facebook is a stumbling block! They cannot deal with it automatically and there is a danger of us losing our almost 90K likes.
I would like to be able to use
Redirect permanent / https://www.mysite.co.uk/
in additional Nginx directives for HTTP.
Part of Facebook's advice to circumvent their own limitations is to exempt their crawler from the redirect as in
https://developers.facebook.com/docs/sharing/webmasters/crawler
Their crawlers are identified as one of these:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
facebookexternalhit/1.1
Facebot
My question is how to structure the additional Nginx directives to cope with this.
I'd be very grateful for any advice.
I am poised to move my site to https, but Facebook is a stumbling block! They cannot deal with it automatically and there is a danger of us losing our almost 90K likes.
I would like to be able to use
Redirect permanent / https://www.mysite.co.uk/
in additional Nginx directives for HTTP.
Part of Facebook's advice to circumvent their own limitations is to exempt their crawler from the redirect as in
https://developers.facebook.com/docs/sharing/webmasters/crawler
Their crawlers are identified as one of these:
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
facebookexternalhit/1.1
Facebot
My question is how to structure the additional Nginx directives to cope with this.
I'd be very grateful for any advice.