This question already has an answer here:
I have created a landing page using HTML/CSS/JS which will be at www.example.com/welcome
The home site is built in WordPress, www.example.com
. I want only the home page of www.example.com
to redirect to this landing page www.example.com/welcome
, not the entire site, so no 301 redirect. In my research I have found that adding this code to your htaccess will redirect your home page only, is that correct?
RedirectMatch ^/$ http://www.example.com/welcome
Read more here: Intermingling HTML/CSS/JS landing page with WordPress [duplicate]