Back to page

− Links

 Print 

.htaccess (どっとえいちてぃあくせす) :: XOOPS マニア

xpwiki:keyword/.htaccess


.htaccess (どっとえいちてぃあくせす) anchor.png[3] Edit [4]

Webサーバ Apache の動作をディレクトリ単位で設定するためのテキストファイル。

Page Top

文字化けしないための .htaccess anchor.png[5] Edit [6]

EUC-JP での運用なら次の設定が吉かも。

# 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

# 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


Last-modified: 2013-08-25 (Sun) 12:17:14 (JST) (2750d) by nao-pon