Mobile app version of vmapp.org
Login or Join
Courtney195

: 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.

@Courtney195

Posted in: #Http

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

2 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

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.

10% popularity Vote Up Vote Down


 

@Harper822

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" />

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme