Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:50:55+00:00 2026-06-01T12:50:55+00:00

Basically I do not want to be penalized by search engine for duplicate contents.

  • 0

Basically I do not want to be penalized by search engine for “duplicate contents”. I’m concerned that, in some cases, the webapp server may be generating exception on pages that would otherwise display fine.

For example, users may post links to the following two pages on the Internet:

www.example.org/nice-article

and

www.example.org/even-nicer-article

Now my webapp typically shall return two different pages and they shall contain great content that is going to be indexed fine by Google etc.

My concern is that in some cases my webapp server may encounter an exception when trying to serve these pages: there may be a bug that we didn’t caught on a previous release, the servlet may throw an exception because a resource it depends on is down, etc.

In that case, as far as I understand, there’s some exception catching going on but I’m not sure what I’m doing is correct.

In my web.xml, I’ve got something like this:

<error-page>
  <exception-type>java.lang.Throwable</exception-type>
  <location>/WEB-INF/jsp/error.jsp</location>
</error-page>

and

<error-page>
  <error-code>404</error-code>
  <location>/WEB-INF/jsp/error.jsp</location>
</error-page>

I’m not sure my web.xml is correct here.

My concern is that in the case of an exception getting caught, I display a message from error.jsp telling something like “An internal error occured, please try again later” but that for whatever reason I’d be sending this as a normal page and not as an error-page (and that hence all the broken page would get referenced as “duplicate contents” because they’d all be displaying more or less the same message).

Basically I’d like to know two things:

  • what status code should I throw if a resource that is normally available is down when the crawling bots (and the clients’ browsers) tries to access it (it’s a 500 right?)

  • how do I configure Tomcat to generate such a status code

Additionally it would be great if you could explain a way I could test this is working: for example can I telnet in and see if I get the correct error code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:50:56+00:00Added an answer on June 1, 2026 at 12:50 pm

    You may want to use 503 error for temporary unavailable pages. This will tell any fair bot that the unavailability is temporary and they need to come back later to crawl the page.

    Your error part of web.xml seems ok to me – how you checked that you’re sending that message as a “normal page”? (which I think – correct me if I’m wrong – means you’re getting HTTP 200 instead of HTTP 404)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, I want to get all rows from the customers table that do NOT
Basically, I do not want the user to enter '0' (zero) as the first
I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not
The following snippet is not working for me. Basically I want to check if
ProgressDialog onClick not working.. here is my code .. Basically i want to show
I've got a simple DB query. Basically I want to select all rows that
I have a div that I want to appear on top of some UI
WQL (basically SQL for WMI) does not support a TOP or LIMIT keyword. Sql
I'm not really sure how to title this question but basically I have an
Hello not sure why Im getting this error. Basically I get it in these

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.