Apache/.htaccessによる設定が反映するようにする
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* .htaccessによる設定が反映するようにする [#sfb1c448]
.htaccessに設定を記述したのに反映されない場合は、.htacces...
以下、.htaccessに記述した設定を読み込むようにする設定を記...
#contents
#htmlinsert(web_ads_top.html)
* 関連記事 [#l54807c0]
- [[.htaccessのファイル名を変更する>Apache/.htaccessのフ...
-[[Apacheでページが移動したことを示すステータスコード301...
* 使用した環境 [#pb168d36]
- Apache(httpd)
# httpd -v
Server version: Apache/2.2.3
Server built: Feb 23 2012 21:16:56
- OS
# lsb_release -sd
"CentOS release 5.8 (Final)"
* httpd.confを確認(apache2.confとなっている場合もあります...
httpd.confを確認すると、以下の記述があります。~
(OS, Apacheのバージョンによりhttpd.confが異なる場合がある...
# This should be changed to whatever you set DocumentRoo...
#
<Directory "/var/www/html">
<省略>
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
AllowOverride None
上記に記述されているように、AllowOverride NoneのNoneをAll...
* httpd.confを修正(AllowOverride Allに変更) [#d85c7adb]
<省略>
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
AllowOverride All
AllowOverride Allに修正し設定ファイルを保存したら、''Apac...
//#htmlinsert(web_ads_btm.html)
終了行:
#navi(../)
* .htaccessによる設定が反映するようにする [#sfb1c448]
.htaccessに設定を記述したのに反映されない場合は、.htacces...
以下、.htaccessに記述した設定を読み込むようにする設定を記...
#contents
#htmlinsert(web_ads_top.html)
* 関連記事 [#l54807c0]
- [[.htaccessのファイル名を変更する>Apache/.htaccessのフ...
-[[Apacheでページが移動したことを示すステータスコード301...
* 使用した環境 [#pb168d36]
- Apache(httpd)
# httpd -v
Server version: Apache/2.2.3
Server built: Feb 23 2012 21:16:56
- OS
# lsb_release -sd
"CentOS release 5.8 (Final)"
* httpd.confを確認(apache2.confとなっている場合もあります...
httpd.confを確認すると、以下の記述があります。~
(OS, Apacheのバージョンによりhttpd.confが異なる場合がある...
# This should be changed to whatever you set DocumentRoo...
#
<Directory "/var/www/html">
<省略>
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
AllowOverride None
上記に記述されているように、AllowOverride NoneのNoneをAll...
* httpd.confを修正(AllowOverride Allに変更) [#d85c7adb]
<省略>
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
AllowOverride All
AllowOverride Allに修正し設定ファイルを保存したら、''Apac...
//#htmlinsert(web_ads_btm.html)
ページ名: