Help us understand the problem. What is going on with this article?

.htaccessメモ

More than 5 years have passed since last update.

該当ファイルへのアクセスをリダイレクト

RedirectMatch 301 /test http://yahoo.co.jp

UAに応じてリダイレクト

RewriteCond %{HTTP_USER_AGENT} !(iPod|iPhone|iPad|Android)
RewriteRule ^sp/(.*)$ / [R=301,L]

RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|iPad|Android) [NC]
RewriteRule ^$ /sp/ [R=301,L]

RewriteCond %{HTTP_USER_AGENT} !Twitterbot [NC]
RewriteRule ^$ /pc/ [R=301,L]

FBやmixiのクローラを許可

order deny,allow
deny from all

Allow from env=fb_crawler
Allow from env=fb_crawler2
Allow from env=mixi_crawler

basic認証

AuthUserFile /home/hogehoge/.htpasswd
AuthGroupFile /dev/null
AuthName "Please enter your ID and password”
AuthType Basic
require valid-user
terumichi1209
WEBエンジニアです!
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away