Web Server: apache
Machine: RHEL 5.2
I'm setting up a rewrite rule which has the following scenario:
I have a url : devmob.stariance.com which needs to be pointed to index.html file which is in document root.Whereas, in the index.html file i'm redirecting to a new index.jsp file which is available in the same document too.
So, the index.html contents are :
Code:
<meta http-equiv="refresh" content="0;URL=http://devmob.stariance.com/index.jsp">
Can you anyone provide me the redirect/rewrite rule which i can specify in apache which would directly take me the index.jsp file?
currently, i have added the following entries :
Code:
RewriteCond %{HTTP_HOST} ^devmob\.stariance\.com [NC]
RewriteRule devmob.stariance.com http://devmob.stariance.com/index.html [PT,NC,L]
I have also setup a virtual host which can run on port 82 for this url.
Code:
<VirtualHost *:82>
DocumentRoot /data/apache/htdocs/mobapp/
ServerName devmob.stariance.com
#DirectoryIndex /mobapp/jsp
DirectoryIndex index.html
JkMount /* node1
JkMount /hottopics* node1
JkMount /mobapp* node1
Include conf/Rewrite.conf
</VirtualHost>
Pls Suggest.