2011-07-24から1日間の記事一覧
稀によく間違っているので参考にしないでください。 RewriteCond %{HTTP_HOST} ドメイン RewriteCond %{REMOTE_ADDR} IPアドレス RewriteCond %{REQUEST_URI} ホームディレクトリからのパス(先頭/必須) RewriteCondは連続して書くとAND条件。OR条件にしたけ…
本番URL hoge-fuga.jp ステージングURL pre.hoge-fuga.jp DirectoryIndex index.php index.html <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On #wwwなしに統一(本番環境のみ) RewriteCond %{HTTP_HOST} ^www\.hoge-fuga\.jp RewriteRule (.*) http://hoge-fuga</ifmodule>…