http://www.example.com/sub/ にアクセスされたら
http://www.example.com/sub/page1/ にリダイレクトしたいのですが
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteRule ^sub/$ sub/page1/ [R,L] </IfModule>
上記の書き方では正常に動作しません。
WordPressが生成した.htaccessに追記したものとなります。
間違いがありましたらご指摘お願いいたします。
回答1件
あなたの回答
tips
プレビュー