Freo-URLの簡略化(mod_rewrite)
CMS:Freo
サーバ:さくらインターネット(申込みサービスによってのサーバ環境は不明)
公式案内の.htaccess
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
</IfModule>
→500エラー
下記へ書き換え(同サーバ内でmod_rewriteを使用しているためIfModuleは外しました。)
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /
RewriteRule .* index.php [L]
に変更で「index.php」無しでアクセス可へ
※ページパス調整プラグイン未使用のためその他トラブルが発生するかは未確認
→自身の環境では特に問題ないみたいです。