简体   繁体   中英

Site returns 404 when using URL without a specific page

When I send a get request to my main URL ( http://www.asospricecompare.com/ ) I get 404 response code - but still get all the source code. This happens also in the browser - the site is loading but show 404 when I check it on the console -> network

在此处输入图片说明

But when I send the request to http://www.asospricecompare.com/home.jsp everything looks fine - I get a response code 200.

I'm using java JSP with servlet running on tomcat8.5.

I can't figure out what could be the problem. Any help will be appreciated! Thanks!

请尝试将web.xml中的欢迎页面设置为要显示为默认页面的页面。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM