简体   繁体   English

网络搜寻器是否读取WEB-INF文件夹内的JSP页面

[英]Do web crawlers read JSP pages inside the WEB-INF folder

I have a webapp that uses jsp pages. 我有一个使用jsp页面的webapp。 I purposely did not put the jsp pages in the WEB-INF folder because there is only minimal code in the jsp and because at the time (about 5 years ago) I read that webcrawlers wouldn't find the files inside the WEB-INF folder. 我故意没有将jsp页面放在WEB-INF文件夹中,因为jsp中只有很少的代码,并且因为当时(大约5年前),我读到webcrawlers在WEB-INF文件夹中找不到文件。 Therefore affecting my SEO/Rank/Search Engine Search results. 因此影响了我的SEO /排名/搜索引擎搜索结果。

I also put the jsp file locations in the sitemap.xml file. 我还将jsp文件的位置放在sitemap.xml文件中。 I'm using tomcat and the site is fully public with no login/security requirements. 我正在使用tomcat,并且该站点是完全公开的,没有登录/安全要求。

So, fast forward to now. 因此,快进到现在。 My site has a pretty good rank and pretty good search results. 我的网站排名很高,搜索结果也很好。 Should I move the jsps to the WEB-INF folder? 我应该将jsps移至WEB-INF文件夹吗? Was my source wrong 5 years ago? 我的资料来源5年前错了吗?

The information you read 5 years ago,still holds true. 您5年前阅读的信息仍然适用。 Files under WEB-INF are not directly accessible. 无法直接访问WEB-INF下的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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