rkaasi Posted August 21, 2019 Share Posted August 21, 2019 (edited) Hello, I deployed one JSP web application (HbitsInfo) and its working fine with URL "http://nyshbits.heliohost.org/HbitsInfo", but i would like to point to main domain "http://nyshbits.heliohost.org" . Could you please suggest me how to proceed to achieve this. Edited August 21, 2019 by rkaasi Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 21, 2019 Share Posted August 21, 2019 Your first domain is showing 404 error. Also, just move your JSP files to your main domain. Then it'll work there. Quote Link to comment Share on other sites More sharing options...
Luigi123 Posted August 21, 2019 Share Posted August 21, 2019 Moved to “Customer Service” category. Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 21, 2019 Share Posted August 21, 2019 @Luigi123: It should rather be in the 'Questions' category. Quote Link to comment Share on other sites More sharing options...
wolstech Posted August 21, 2019 Share Posted August 21, 2019 For JSP files, sohamb03 has the solution. For WAR files, this configuration is not supported. You'd need to just put a redirect in the root folder to redirect into the (invisible) Hbitsinfo folder. A simple index.php file can do that. Place it in public_html, set permissions to 644, and it should work. <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: /Hbitsinfo/"); die("Redirect failed"); ?> 1 Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 21, 2019 Share Posted August 21, 2019 @wolstech: sohmab???? Quote Link to comment Share on other sites More sharing options...
wolstech Posted August 21, 2019 Share Posted August 21, 2019 @sohamb03: That's what I get for a fast response. Fixed. Quote Link to comment Share on other sites More sharing options...
Sn1F3rt Posted August 21, 2019 Share Posted August 21, 2019 Amazing! :-) Quote Link to comment Share on other sites More sharing options...
rkaasi Posted August 21, 2019 Author Share Posted August 21, 2019 For JSP files, sohamb03 has the solution. For WAR files, this configuration is not supported. You'd need to just put a redirect in the root folder to redirect into the (invisible) Hbitsinfo folder. A simple index.php file can do that. Place it in public_html, set permissions to 644, and it should work. <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: /Hbitsinfo/"); die("Redirect failed"); ?> This worked. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.