: How to stop Google from indexing pages no longer used URL parameters I made a complete rewrite of a webpage. The previous version was made in PHP and the whole URL scheme was like this: domain.com/?p=subpage
I made a complete rewrite of a webpage. The previous version was made in PHP and the whole URL scheme was like this:
domain.com/?p=subpage
The new webpage is just a couple .html files (that's a static webpage). This means that any query of form
domain.com/?p=subpage
will render the same index.html content. This makes Google punish me for content duplication.
I uploaded a sitemap which does not contain these urls before the webpage was indexed but it didn't prevent Google from indexing those old garbage.
I noticed that in the Google webmaster console, in the URL parameters section there is a rule matching p. Unfortunately, the console gives me no way of deleting it.
What's the best thing I could do in this situation?
More posts by @Si4351233
3 Comments
Sorted by latest first Latest Oldest Best
One simple solution is allowing the search engines to crawl the URLs pointing to the web pages with same content. Just mark them as ‘DUPLICATES’ using the rel = “canonical” element, 301 redirect or the URL parameter handling tool. To avoid too much crawling of your site, adjust the crawl rate setting in Search Console. Duplicate content on a site is not penalized unless it appears to Google that the duplication intends to manipulate search engine results. In this case, Google indexes the best version of the content in SERPs.
If I'm understanding your question correctly, what was once /?p=example-page would now be /example-page.html.
If that's right, the best thing to do is permanently redirect the old parameter pages to their respective .html versions, so:
/?p=aboutme -- 301 > /about-me.html
/?p=prices -- 301 > /prices.html
And so on.
Doing this prevents the duplication problem. It informs search engines that the old page has been replaced, causing the old page to be removed from search indices and the "SEO value" to be passed to the new pages.
It also ensures direct traffic (e.g., from browser bookmarks and external links) to old pages is forwarded to the new ones.
This is the approach recommended by Google's guide to site moves with URL changes.
When you click on Configure URL parameters in the URL parameters section of Google Webmaster Console, you should be able to Edit and then No: Doesn't affect page content (e.g. tracks usage) the ?p parameter. That will be a strong signal to Google to stop taking the ?p parameter into account.
An additional measure could be to add a <link rel="canonical"> with the right URL to the page (so without ?p), just to let Google know that this is the exact URL that you want.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.