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
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.
Sn1F3rt Posted August 21, 2019 Posted August 21, 2019 @Luigi123: It should rather be in the 'Questions' category.
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
wolstech Posted August 21, 2019 Posted August 21, 2019 @sohamb03: That's what I get for a fast response. Fixed.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now