We faced an issue recently where a redirect rule was not working irrespective of correctly specifying in .htaccess file. We checked in several ways but the issue was not resolved. Finally, my fellow admin suggested we add it directly in the virtual host in apache config file of the domain. And it worked!!!!.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.yourdomainname.com
RewriteRule ^/(.*)$https://www.google.com/a/yourdomainname.com/$1 [L,R=301]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^webmail.yourdomainname.com
RewriteRule ^/(.*)$https://www.google.com/a/yourdomainname.com/$1 [L,R=301]
No comments:
Post a Comment