ロリポップサーバーでドメイン直下からWordpressアドレスへ301リダイレクトを設定するメモ。
/ → /note/
ドキュメントルート直下に以下のファイルを設置する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^$ /note/ [R=301] | |
</IfModule> |
コメント