mod_rewrite
HTTPリクエストをremapできるApacheのモジュール
AllowOverride
core - Apache HTTP サーバ バージョン 2.4
RewriteBase
mod_rewriteリダイレクト先の基準パスを指定するRewriteBase - JoyPlotドキュメント
RewriteRuleで飛ばす先のベースのパスを指定する
RewriteBaseが/rewriteだった場合、RewriteRuleで/index.htmlに飛ばす設定を書くと、/rewite/index.htmlに飛ぶ
RewriteRuleを複数設定するときにBaseとなるpathを複数回書かずにすむ
RewriteRule
https://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewriterule
[L]:
The L flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed. This corresponds to the last command in Perl, or the break command in C. Use this flag to indicate that the current rule should be applied immediately without considering further rules.
https://httpd.apache.org/docs/current/rewrite/flags.html#flag_l
デバッグ
Apacheのrewritelogの出力方法(Apache2.2とApache2.4で違います) - Qiita