Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
18 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,3 @@ | ||
# | ||
# /.htaccess | ||
# | ||
# 【スマートURLについて】 | ||
# 短くスマートなURLを実現する為には、ApacheのRewriteモジュールが必要です。 | ||
# スマートURLの設定は、管理画面のシステム設定より行えます。 | ||
# (例) | ||
# スマートURLオフ:http://localhost/index.php/contact/index | ||
# スマートURLオン:http://localhost/contact/index | ||
# | ||
# 【スマートURLの設定に失敗した場合】 | ||
# /.htaccess と /app/webroot/.htaccess に記述されている | ||
# RewriteBase 設定をサーバー環境に合わせて調整してください。 | ||
# マルチドメインの場合は、マルチドメインの設定フォルダを設定値に | ||
# 付け加えるうまくいく事が多いようです。 | ||
# | ||
# (例)マルチドメインのフォルダが「test」の場合 | ||
# RewriteBase /test | ||
# | ||
# 【スマートURLを手動でオンにする】 | ||
# ■ /.htaccess と /app/webroot/.htaccess にRewrite設定を記述する必要があります。 | ||
# /.htaccess では次の4行を記述します。 | ||
# RewriteEngine on | ||
# RewriteBase / | ||
# RewriteRule ^$ app/webroot/ [L] | ||
# RewriteRule (.*) app/webroot/$1 [L] | ||
# ■ /app/Config/install.php に次の行を追加します。 | ||
# Configure::write('App.baseUrl', ''); | ||
# | ||
# 【スマートURLを手動でオフにする】 | ||
# ■ /.htaccess と、/app/webroot/.htaccess 内の、次の行で始まる行を全て削除します。 | ||
# RewriteEngine / RewriteBase / RewriteCond / RewriteRule | ||
# ■ /app/Config/install.php の次の行を削除します。 | ||
# Configure::write('App.baseUrl', ''); | ||
# | ||
# 【動作確認済レンタルサーバー】 | ||
# http://basercms.net/manuals/introductions/2.html | ||
# | ||
|
||
RewriteEngine on | ||
RewriteRule ^$ app/webroot/ [L] | ||
RewriteRule (.*) app/webroot/$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,5 @@ | ||
# | ||
# /app/webroot/.htaccess | ||
# | ||
# 【スマートURLについて】 | ||
# 短くスマートなURLを実現する為には、ApacheのRewriteモジュールが必要です。 | ||
# スマートURLの設定は、管理画面のシステム設定より行えます。 | ||
# (例) | ||
# スマートURLオフ:http://localhost/index.php/contact/index | ||
# スマートURLオン:http://localhost/contact/index | ||
# | ||
# 【スマートURLの設定に失敗した場合】 | ||
# /.htaccess と /app/webroot/.htaccess に記述されている | ||
# RewriteBase 設定をサーバー環境に合わせて調整してください。 | ||
# マルチドメインの場合は、マルチドメインの設定フォルダを設定値に | ||
# 付け加えるうまくいく事が多いようです。 | ||
# | ||
# (例)マルチドメインのフォルダが「test」の場合 | ||
# RewriteBase /test/app/webroot | ||
# | ||
# 【スマートURLを手動でオンにする】 | ||
# ■ /.htaccess と /app/webroot/.htaccess にRewrite設定を記述する必要があります。 | ||
# /app/webroot/.htaccess には次の5行を記述します。 | ||
# RewriteEngine on | ||
# RewriteBase /app/webroot | ||
# RewriteCond %{REQUEST_FILENAME} !-d | ||
# RewriteCond %{REQUEST_FILENAME} !-f | ||
# RewriteRule ^(.*)$ index.php [QSA,L] | ||
# ■ /app/Config/install.php に次の行を追加します。 | ||
# Configure::write('App.baseUrl', ''); | ||
# | ||
# 【スマートURLを手動でオフにする】 | ||
# ■ /.htaccess と、/app/webroot/.htaccess 内の、次の行で始まる行を全て削除します。 | ||
# RewriteEngine / RewriteBase / RewriteCond / RewriteRule | ||
# ■ /app/Config/install.php の次の行を削除します。 | ||
# Configure::write('App.baseUrl', ''); | ||
# | ||
# 【動作確認済レンタルサーバー】 | ||
# http://basercms.net/manuals/introductions/2.html | ||
# | ||
Allow from all | ||
RewriteEngine on | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^(.*)$ index.php [QSA,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.