最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

redirect - Redirecting specific sites to HTTP in WordPress Multisite

programmeradmin0浏览0评论

What I need to do is redirect only some of the sites in my multisite installation to use HTTP instead of HTTPS. Currently my setup has been so that every site redirects to HTTPS but I can't seem to figure out how to force only some sites to go over HTTP. How would I achieve this?

What I need to do is redirect only some of the sites in my multisite installation to use HTTP instead of HTTPS. Currently my setup has been so that every site redirects to HTTPS but I can't seem to figure out how to force only some sites to go over HTTP. How would I achieve this?

Share Improve this question asked Sep 18, 2020 at 7:34 user1589375user1589375 734 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Turns out what I tried before actually worked but my browser forced the site to https from old habits (cache). If anyone else is having problems with this, here is what I did:

  • Make sure the URL does not have s in it in your Sites page in Multisite Dashboard
  • Make sure you don't have a plugin installed forcing HTTPS on (I had iThemes Security so I had to disable the SSL option from there)
  • Make sure you change all the URLs in the database from https to http for the specific site (use a plugin like Better Search Replace that has support for changing serialized data and take backup of your database before doing it!)
  • If you're still getting redirected to https, make sure you don't have antivirus program installed that checks SSL certificates (I had Bitdefender's option on to check for SSL certificates)
  • After doing all of the above, try with different browsers and/or devices and everything should work now
发布评论

评论列表(0)

  1. 暂无评论