<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # 除外するディレクトリを追加 ↓ RewriteCond %{REQUEST_URI} !(^/ディレクトリ名/) RewriteCond %{REQUEST_URI} !(^/ディレクトリ名/) RewriteCond %{REQUEST_URI} !(^/ディレクトリ名/) # 除外するディレクトリを追加 ↑ RewriteRule . /index.php [L] </IfModule>