How to redirect unauthorized visitors to landing page (which is on the same server)?


I need to prevent user who are not logged in to access my site. Just using a plugin doesn’t work, because then even my landing page which is on the same server and under same domain cannot be accessed.

I tried modifying the .htaccess file and also adding a custom header. I didn’t get either option to work. Any suggestions?

It’s quire urgent :slight_smile:

Thanks a lot!