rkaasi Posted August 21, 2019 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
Sn1F3rt Posted August 21, 2019 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
Sn1F3rt Posted August 21, 2019 Posted August 21, 2019 @Luigi123: It should rather be in the 'Questions' category. Quote
wolstech Posted August 21, 2019 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
wolstech Posted August 21, 2019 Posted August 21, 2019 @sohamb03: That's what I get for a fast response. Fixed. Quote
rkaasi Posted August 21, 2019 Author 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
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.