エントリー

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」無しでアクセス可へ

※ページパス調整プラグイン未使用のためその他トラブルが発生するかは未確認

→自身の環境では特に問題ないみたいです。

ページ移動

Notice

ここは一次創作(オリジナルJUNE)とサイト運営に関するメモを載せたサイトです。

Recent Posts

<<2026年02月>>

S M T W T F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
- - - - - - -

tag-cloud

Feed