Forum Moderators: phranque

Message Too Old, No Replies

Need some help

preventing dynamic pages from being indexed

         

twebdonny

2:55 pm on Sep 8, 2005 (gmt 0)



Hello,
As of late we have been incurring a rather large penalty
in Google that we believe is the result of dynamic pages
being indexed which is tripping a dupe content filter.

ie, www.widgets.com/?anytexthere
is being served and indexed

and we would prefer it does not, because it is a
dupe of www.widgets.com

Can we add some text to our htaccess file to prevent this
and if so what might it be?

Thanks if u can help
DJ

jd01

7:31 pm on Sep 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This will remove a query string from an original request (in a browser, by a SE, or through clicking on a link) and redirect to the corresponding page without the query string.

RewriteCond %{THE_REQUEST} \?.*\ HTTP/ [NC]
RewriteRule (.*) http://www.yoursite.com/$1? [R=301,L]

Hope this helps.

Justin