I'm trying to mask a URI to webmail client under a subdomain.
Searching around this forum, I was able to mask the redirection.
The problem is, that all img and css files nested in webmail's client, aren't displayed. Directory tree is long, and if I'd like to switch between webmail cmses (couple available) I'd have to edit htaccess everytime.
Here's what I've done:
subdomain: http://webmail.mydomain.com
webmail URI http://mydomain.com/roundcube/ (also squirrel, and atmail are available)
.htaccess
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail\.mydomain\.com$ [NC]
RewriteRule ^(.*)$ http://mydomain.com/roundcube/ [P,L]
uri to images:
http://mydomain.com/roundcube/skins/default/common.css
http://mydomain/roundcube/skins/default/images/
I have no idea how to mask all directories, so I kindly ask for help here.
I found a similar thread, but it's kind of ... old, and has no replies.
viewtopic.php?t=81