homepage Welcome to WebmasterWorld Guest from 67.202.56.112
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
Correct way to exclude all dynamic pages under one url?
jackgordon




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

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

 

g1smd




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

Disallow:
/proddetail.php?

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

jackgordon




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

Thanks! :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved