I have tried everything I know and I can't seem to come up with a solution. I am trying to redirect my website to a landing page (which I have put into a folder with a css file, changing the index.html to index.php.
I have successfully redirected the website, but unfortunately no matter what I do, wp-admin redirects to the landing page as well.
There is another folder I would like to remain without being redirected as well. I presume once I understand how to exclude wp-admin from the redirect, I will be able to add other exceptions as well?
Here is what I have:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/construction-landing/(.)*$ [NC]
RewriteCond %{REQUEST_URI} !wp-admin
RewriteRule ^(.*)$ /construction-landing/index.php [R=302,L]
Thank you in advance for your help! Jules