RewriteEngine on
RewriteCond %{QUERY_STRING} (^|&)privatetoken=(.)$
RewriteCond %{REQUEST_URI} !^/.well-known/ ←これがうまくいかない
RewriteRule . https://hogehoge.com/?%{QUERY_STRING} [L]
RedirectMatch 301 .* https://hogehoge.com/?id=53
この記述で、.well-known以下のアクセスの場合リダイレクトしないようにしたいです。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/27 07:57
2018/07/27 08:16 編集