したいこと
wordpressの固定ページでindex.htmlと同様のページを作りました。
https://example.com/ or https://example.com/index.html
⬇︎URLを変えずリダイレクト
https://example.com/wp/top
としたいと思っています。
/index.html ←削除予定 /store.html /contact.html /.htaccess ←操作対象 /wp/ ←リダイレクト先のwordpress /img/ /css/ /js/ /product/
試したこと
.htaccessを以下にしてみましたが、wordpressで404になってしまいます。
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule index.html /wp/top [L] </IfModule>
あなたの回答
tips
プレビュー