: What is the syntax for using 410 status for deleted pages? I want to permanently delete some pages in my site using 410 status. I'm not sure of correct syntax of removing pages using 410.
I want to permanently delete some pages in my site using 410 status. I'm not sure of correct syntax of removing pages using 410.
I've found one syntax and I've a page( duplicate product page content) to remove : www.creditcardpaymentgateways.in/indiapay-payment-gateway-frequently-asked-questionsfaq.html
so will this syntax do?
RewriteRule ^indiapay-payment-gateway-frequently-asked-questionsfaq.html$ - [G,L]
In my site I have a couple of duplicate product pages which I want to remove as my site is getting penalized.
More posts by @Courtney195
2 Comments
Sorted by latest first Latest Oldest Best
If you have a duplicate page which you have no reason to keep, you should not 410 it, nor leave it up, but instead use a 301 (Moved Permanently) redirect to the other copy. In this way, any links or bookmarks to the removed page will not be broken.
Your rewrite rule is fine for the page that's been deleted. It will return a 410 error for that page only.
If there's a good reason to keep any of the duplicate pages, you can use a canonical link tag in the head of the duplicate page, containing the preferred URL you want Google to use when indexing those pages. e.g.:
<link rel="canonical" href="http://www.yoursite.in/payment.html" />
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.