My Requirement is
1. If I enter mydomain.com or
www.mydomain.com, it should redirect to
http://www.mydomain.com/site/public/home.jsp
2. I also have mantis installed in apache root folder. So, If I enter mydomain.com/mantibt it should take me to mantis login page.
I placed a htaccess file with the below content.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond {HTTP_HOST} ^mydomain.com$ [NC]
RewriteRule ^(.*)$
http://www.mydomain.com/site/public/home.jsp [L,R=301]
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC]
RewriteRule ^(.*)$
http://www.mydomain.com/site/public/home.jsp [L,R=301]
RewriteRule ^mantisbt/(.*)$ http://mydomain.com/mantisbt/$1 [R=301,L]
</IfModule>
Please let me know what is missing