Advertisement:

Author Topic: [Solved] Facebook Help  (Read 137 times)

200268am

  • Newbie
  • *
  • Posts: 3
[Solved] Facebook Help
« on: August 18, 2019, 02:49:12 pm »
If you have any plugin that uses Facebook the following might help to solve any issues


The Facebook login problem was due to the fact that my site was under http

Facebook only accepts https !!!!


So add
* I added SSL encription via my hosting provider

* I added the following code in the htaccess file:

RewriteCond %{HTTP_HOST} ^Yoursite.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.Yoursite.com/$1 [R=301,L]


* I adjusted from http to https in the config.php file


* I adjusted from http to https in all sitemap files
« Last Edit: August 18, 2019, 02:55:56 pm by 200268am »

Dimal

  • Full Member
  • ***
  • Posts: 135
Re: [Solved] Facebook Help
« Reply #1 on: August 18, 2019, 10:01:30 pm »

This not SSL added, this is REdirection of all non-https to https via .HTACCESS