#AuthType Basic
#AuthName administrator
#AuthUserFile /var/www/html/.htpasswd
#Require valid-user



# /**
#  * .htaccess for Lambda
#  */

<Files ~ "^.*\.ini$">
    order deny,allow
    deny from all
</Files>

########################################################################
# no indexes
########################################################################
Options -Indexes


########################################################################
# follow symLinks for `mod_rewrite'
########################################################################
Options +FollowSymLinks


########################################################################
# compress text, html, javascript, css, xml:
########################################################################
#AddOutputFilterByType DEFLATE text/plain
#AddOutputFilterByType DEFLATE text/html
#AddOutputFilterByType DEFLATE text/xml
#AddOutputFilterByType DEFLATE text/css
#AddOutputFilterByType DEFLATE application/xml
#AddOutputFilterByType DEFLATE application/xhtml+xml
#AddOutputFilterByType DEFLATE application/rss+xml
#AddOutputFilterByType DEFLATE application/javascript
#AddOutputFilterByType DEFLATE application/x-javascript


########################################################################
# php settings
########################################################################

# �u���E�U�o�b�N�őO��̓��͒l��ێ�������
#php_value session.cache_limiter public

# -----------------------------------------
# basic
# -----------------------------------------
php_value magic_quotes_gpc   Off
php_value register_globals   Off
php_value session.auto_start Off
php_value short_open_tag     Off
php_value date.timezone      Asia/Tokyo

# -----------------------------------------
# file upload.
#
#   memory_limit > post_max_size
# -----------------------------------------
php_value post_max_size       16M
php_value upload_max_filesize 16M
php_value memory_limit        128M

# -----------------------------------------
# for PC.
# -----------------------------------------
php_value output_buffering  Off
php_value output_handler    none
php_value mbstring.language             Japanese
php_value mbstring.internal_encoding    UTF-8
php_value mbstring.encoding_translation Off
php_value mbstring.http_input           pass
php_value mbstring.http_output          UTF-8
php_value mbstring.detect_order         none
php_value mbstring.substitute_character none

### HTTP Header: Content-Type: text/html; charset={default_charset}
php_value default_charset               utf-8

# -----------------------------------------
# for mobile.
# -----------------------------------------
# php_value output_buffering  On
# php_value output_handler    mb_output_handler
# php_value mbstring.language             Japanese
# php_value mbstring.internal_encoding    UTF-8
# php_value mbstring.encoding_translation On
# php_value mbstring.http_input           auto
# php_value mbstring.http_output          SJIS-win
# php_value mbstring.detect_order         auto
# php_value mbstring.substitute_character none

### HTTP Header: Content-Type: text/html; charset={default_charset}
# php_value default_charset               Shift_JIS


########################################################################
# Lambda settings: for URI_REWRITE_{STATIC|DYNAMIC|HYBRID}
########################################################################
RewriteEngine on
#RewrteBase /
RewriteRule ^index\.php - [NC,L]

# index.html index.htm
RewriteRule ^index\.html?$ index.php [L]

#RewriteCond %{REQUEST_FILENAME} -f [OR]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^.*$ - [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# detail
#RewriteRule ^detail/(.+)$ index.php/detail?product_id=$1 [L,QSA]

# list
#RewriteRule ^list/(.+)$ index.php/list?genre_id=$1 [L,QSA]

# default
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
