htaccess: How to hide a webmail client behind wordpress?

Here’s the setup:

A webmail client is accessible through two URLs:


    (The directory in which it is installed.)


    (A wordpress plugin that displays the webmail client in an iframe inside wordpress admin.)

Now, if a user tries to access the webmail client through it should be redirected to (which forces the user to log in first). However, the wordpress plugin must still be able to access to be able to display the webmail client inside the iframe.

Can this be configured through .htaccess? If so, how?

A little background information:
I’d like to do this for security reasons: WordPress is secured by various means, but the webmail client only supports basic authentication and the easiest way to prevent any issues with the webmail client is to hide it behind wordpress. If this can’t be done through htaccess, what other options would you suggest?

Your advise is highly appreciated. Thank you!

Read more here: htaccess: How to hide a webmail client behind wordpress?

Leave a Reply

Your email address will not be published. Required fields are marked *