ページへ戻る
印刷
.htaccess (どっとえいちてぃあくせす)
をテンプレートにして作成 ::
XOOPS マニア
xpwiki
:keyword/.htaccess をテンプレートにして作成
開始行:
#nopagecomment
#navi
* .htaccess (どっとえいちてぃあくせす)
Webサーバ Apache の動作をディレクトリ単位で設定するための...
** 文字化けしないための .htaccess
EUC-JP での運用なら次の設定が吉かも。
#code(php,nonumber){{
# Charactor Encoding
AddDefaultCharset EUC-JP
# PHP Settings
php_value output_buffering off
php_value output_handler none
php_value default_charset EUC-JP
php_value mbstring.language Japanese
php_value mbstring.encoding_translation off
php_value mbstring.internal_encoding EUC-JP
php_value mbstring.script_encoding none
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.detect_order auto
php_value mbstring.substitute_character none
}}
UTF-8 なら EUC-JP の部分を UTF-8 にすればOK
#code(php,nonumber){{
# Charactor Encoding
AddDefaultCharset UTF-8
# PHP Settings
php_value output_buffering off
php_value output_handler none
php_value default_charset UTF-8
php_value mbstring.language Japanese
php_value mbstring.encoding_translation off
php_value mbstring.internal_encoding UTF-8
php_value mbstring.script_encoding none
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.detect_order auto
php_value mbstring.substitute_character none
}}
#navi
終了行:
#nopagecomment
#navi
* .htaccess (どっとえいちてぃあくせす)
Webサーバ Apache の動作をディレクトリ単位で設定するための...
** 文字化けしないための .htaccess
EUC-JP での運用なら次の設定が吉かも。
#code(php,nonumber){{
# Charactor Encoding
AddDefaultCharset EUC-JP
# PHP Settings
php_value output_buffering off
php_value output_handler none
php_value default_charset EUC-JP
php_value mbstring.language Japanese
php_value mbstring.encoding_translation off
php_value mbstring.internal_encoding EUC-JP
php_value mbstring.script_encoding none
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.detect_order auto
php_value mbstring.substitute_character none
}}
UTF-8 なら EUC-JP の部分を UTF-8 にすればOK
#code(php,nonumber){{
# Charactor Encoding
AddDefaultCharset UTF-8
# PHP Settings
php_value output_buffering off
php_value output_handler none
php_value default_charset UTF-8
php_value mbstring.language Japanese
php_value mbstring.encoding_translation off
php_value mbstring.internal_encoding UTF-8
php_value mbstring.script_encoding none
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.detect_order auto
php_value mbstring.substitute_character none
}}
#navi
ページ名: