RewriteEngine on
RewriteBase /
# HTMLファイルへのリクエストはINDEXにリダイレクト
RewriteRule ^.*\.html$ / [R,L]
# 画像、CSS、JavaScriptファイルへのリクエストは何もしない
RewriteRule ^.*\..+$ - [L]
# BackリクエストはBackのindex.phpへ
RewriteRule ^back/?([^/]*)/?([^/]*)/?([^/]*)$ /back/index.php?action=$1&target=$2&option=$3 [QSA,L]
# それ以外はすべて、index.phpに任せます
RewriteRule ^([^/]*)/?([^/]*)/?([^/]*)$ /front/index.php?action=$1&target=$2&option=$3 [QSA,L]
