htaccess force ssl except for rss feeds

▼魔方 西西 提交于 2019-12-02 09:26:44

Your rules are using OR so they read as:

if server port is 80 and the request is not forum OR it is not feed OR it is not shop/forum

That's going to match everything. Get rid of both of the [OR] so that the match reads:

if server port is 80 and the request is not forum AND it is not feed AND it is not shop/forum

EDIT:

Per your updated question, the following line is missing a slash:

RewriteCond %{REQUEST_URI} !feed [NC]

should be

RewriteCond %{REQUEST_URI} !/feed [NC]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!