mod_rewrite
ファイルがなければリダイレクトというよくある処理。 でも、DirectoryIndexでファイル名がとれないアクセスをどうすればいいのか小一時間悩んだ。 Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_F</ifmodule>…
ファイルがなければリダイレクトというよくある処理。 でも、DirectoryIndexでファイル名がとれないアクセスをどうすればいいのか小一時間悩んだ。 Options +FollowSymLinks <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_F</ifmodule>…