## アクセス許可
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>


## リライト
Rewriteengine on
### --------------------------------------------------------
### - 運営するURLにて設定を行う
### - 稼働URLがhttp://www.somesite.com/onedeopoならRewriteBaseは/onedepoとする
RewriteBase /onedepo

## PHP
<IfModule mod_php5.c>
### --------------------------------------------------------
### - /var/local/onedepoのディレクトリ設定はインストールした
### - ディレクトリにあわせて変更して下さい
   php_value include_path ".:/var/local/onedepo/onedepocore/components:/var/local/onedepo/onedepocore/include:/var/local/onedepo/onedepocore/smarty"
   php_value display_errors false
   php_value error_reporting 0
</IfModule>


###-----------------------------------------------------------------------------

## 条件
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d

## ルール
RewriteRule (css|images|admin_img|img|js|exportdata)/(.+\.)(js|ico|gif|jpg|png|css|swf)$ $1/$2$3 [QSA,L]
RewriteRule img\.php img\.php [QSA,L]
RewriteRule error\.html error\.html [QSA,L]
RewriteRule admin\.php admin\.php [QSA,L]

## 動画
RewriteRule ^movie_([0-9]+)_([0-9]+).flv? index.php?action=movie&c=$1&sc=$2 [PT,N,QSA]

## 商品詳細ページ
# 携帯判定
RewriteCond %{HTTP_USER_AGENT} ^(J-PHONE|Vodafone|MOT-|SoftBank|DoCoMo|UP.Browser|KDDI)
RewriteRule ^item_([0-9]+).html? index.php?action=mobile_itemdetail&cd=$1 [PT,N,QSA]
# PC
RewriteRule ^item_([0-9]+).html? index.php?action=itemdetail&cd=$1 [PT,N,QSA]

# 携帯判定
RewriteCond %{HTTP_USER_AGENT} ^(J-PHONE|Vodafone|MOT-|SoftBank|DoCoMo|UP.Browser|KDDI)
RewriteRule ^item_([0-9]+)\-([0-9]+).html? index.php?action=mobile_itemdetail&cd=$1&scd=$2 [PT,N,QSA]
# PC
RewriteRule ^item_([0-9]+)\-([0-9]+).html? index.php?action=itemdetail&cd=$1&scd=$2 [PT,N,QSA]

RewriteRule ^(.*).html index.php?action=help&pageid=$1


