Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

The correct 410 syntax

Posted on 2013-06-12
3
234 Views
Last Modified: 2013-06-17
I have about 200 URLs that have been permanently removed. I'm currently using this code to redirect these links to a Not Found page. Notice the URLs contain query strings.
RewriteCond %{QUERY_STRING} Screen=PROD&Store_Code=1212&Product_Code=pumpkin_complexion_bar&Category_Code=facial_soap$
RewriteRule ^(.*)$ http://www.soapforgoodnesssake.com/mm5/merchant.mvc?Screen=NTFD&Store_Code=1212 [R=301,L]

Open in new window

How do I write a rule that redirects to the Not Found page but tells Google that the URL has been permanently removed.
0
Comment
Question by:Gary Samuels
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39241514
Change the error code to 410, that's all you need. Google should eventually remove it from the index
0
 

Author Comment

by:Gary Samuels
ID: 39241612
I've tried that but it does not redirect to the Not Found page. Instead I get a screen that says,

Gone

The requested resource
/mm5/merchant.mvc
is no longer available on this server and there is no forwarding address. Please remove all references to this resource.
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39241784
RewriteCond %{QUERY_STRING} Screen=PROD&Store_Code=1212&Product_Code=pumpkin_complexion_bar&Category_Code=facial_soap$
RewriteRule ^(.*)$ /mm5/merchant.mvc?Screen=NTFD&Store_Code=1212 [R=410,L]

ErrorDocument 410 /mm5/merchant.mvc?Screen=NTFD&Store_Code=1212
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question