.htaccess & WordPress: Exclude folder from RewriteRule

前端 未结 17 1502
不思量自难忘°
不思量自难忘° 2020-11-29 06:37

I have this .htaccess file in WordPress. It\'s located at /public_html/ (web root). I need to exclude a folder (csNewsAd) from the rewrite engine. I\'ve tried this, based fr

17条回答
  •  一生所求
    2020-11-29 07:18

    Place the line below in the .htaccess file in the root.

    ErrorDocument 401 default
    

    Had the exact same problem and this worked for me. It is not the problem that the redirects don't work. The problem is that the 401 (Authorization Required) error is nog defined so the "popup" doesn't show.

提交回复
热议问题