Forum Moderators: phranque

Message Too Old, No Replies

Trying to set up a 410

Does this look right?

         

Trisha

2:57 am on Jun 13, 2005 (gmt 0)

10+ Year Member



I have a bunch of pages I removed from a site and based on another thread it seems that setting up a 410 with htaccess is best for Google.

Does the following look right to tell Google that all pages from the directory 'widgets' are gone permanently?

RewriteRule h ttp://www.mydomain.com/sh/widgets/*$ [R=410,L]

And from what I understand it can also be written like:

RewriteRule ^sh/widgets/*$ [R=410,L]

Is there any advantage or disadvantage to writing out the whole url or not?

jdMorgan

3:08 am on Jun 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's the correct syntax for use in .htaccess:

Return 410 Gone status for all requested URIs beginning with "sh/widgets/":

 
RewriteRule ^sh/widgets/ - [G]

Jim

Trisha

8:12 pm on Jun 13, 2005 (gmt 0)

10+ Year Member



Thanks - that's even simpler!