admin管理员组文章数量:1322850
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 badges1 Answer
Reset to default 0Turns 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
本文标签: redirectRedirecting specific sites to HTTP in WordPress Multisite
版权声明:本文标题:redirect - Redirecting specific sites to HTTP in WordPress Multisite 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742113203a2421348.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论