Welcome to WebmasterWorld Guest from 54.167.153.63

Forum Moderators: goodroi

Message Too Old, No Replies

Correct way to exclude all dynamic pages under one url?

   
7:53 pm on Feb 7, 2009 (gmt 0)

5+ Year Member



Hello
I have a page, proddetail.php. I want to exclude all the dynamic pages that run off that url, using robots.txt file.

eg.
proddetail.php?prod=1
proddetail.php?prod=2
proddetail.php?prod=3
proddetail.php?prod=4
proddetail.php?prod=5

and so on.....

What is the correct and easiest way to write this in the robots.txt file?

Thanks
Jack

8:18 pm on Feb 7, 2009 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Disallow:
/proddetail.php?

This disallows any URL starting /proddetail.php, and which includes a question mark, and anything else after it.

8:55 pm on Feb 7, 2009 (gmt 0)

5+ Year Member



Thanks! :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month