携帯サイトを運営しているので携帯以外からのアクセスを認めないために下記の設定をしています。
order deny,allow
deny from all
allow from .jp-c.ne.jp省略
#Docomo
allow from 210.153.84.0/24
省略
# SoftBank
allow from 202.179.204.0/24
省略
# EZweb TU-KA
allow from 210.169.40.0/24
省略
# AirH"PHONE
allow from 61.198.142.0/24
省略
ErrorDocument 401 http://*****.ne.jp/error
ErrorDocument 403 http://*****.ne.jp/error
ErrorDocument 404 /error.html
ErrorDocument 500 /error.html
これはこれでOKなのですが、もうひとつ.htaccessの設定を下記の通りおこないたいです。
# add slash for non-slashed url access
RedirectMatch ^/([^.]*[^/])$ http://*****.ne.jp/r/$1/
# hand in and delete slash to escape loop..
RedirectMatch /([0-9]+)/$ http://*****.ne.jp/index.php/$1
上記の2つともTOPに置かなければならないため、ひとつにまとめなければなりません。
どのようにまためたらエラーにならず正常に動作するでしょうか。
よろしくお願い致します。
回答者 | 回答 | 受取 | ベストアンサー | 回答時間 | |
---|---|---|---|---|---|
1 | ![]() |
47回 | 33回 | 1回 | 2008-08-21 23:44:14 |
コメント(1件)
見たところ、併記しても特に問題無さそうではありますが。