The Moz Q&A Community

Hey friend! Have fun exploring Q&A, but in order to ask your own
questions, comment, or give thumbs up, you need to be logged in to your
Moz Pro account.
You can also earn access by receiving 500
MozPoints
from participating in YouMoz and the Moz Blog!

2 Responses

If both cases display the same exact content via different URLs, then you don't want to return 200 status codes for both versions. A 301 redirect might work but since they are for the same exact page, it's possible you might run into an infinite redirect loop and make your pages completely inaccessible. As a result, I would recommend using the rel="canonical" tag to designate which URL is the correct one for the search engines to index.

If Googlebot gets "200 OK" as response, it will think that the page/resource is available.

If both URLS, with .html or not at the end, of the same page are sending the response "200 OK", Google will think that you have a duplicated page (2 urls for an identical content).

It isn't the best way, I think it should be fixed.

As written before by Streamline Metrics, you can add a canonical tag to set the main URL or you could setup 301 permanent redirects to the main URLS (with .html or not, as you prefer).

Applying both the fixes will make you safe about internal duplicates issues, because the redirect will force only one URL for each page and the canonical will prevent the indexing of additional querystring parameters (as sorting or filtering variables), for example http://www.domainame.com/category/article-about-something?sort=desc&date=new&col=name

Hey friend! Have fun exploring Q&A, but in order to ask your own
questions, comment, or give thumbs up, you need to be logged in to your
Moz Pro account.
You can also earn access by receiving 500
MozPoints
from participating in YouMoz and the Moz Blog!
Learn more.