(Wow, it's been forever since my last post. I just had to update my old picture before making a post!)
I'm developing a wiki using the MediaWiki software.
There are a lot of behind-the-scenes pages that I would like to block from the search engine, so I thought robots.txt.
The problem is, everything is placed in the root folder.
Can I block pages based on how they start:
Disallow: /Special:
Disallow: /Template:
Disallow: /User_talk:
What about pages with different starts, but contain a certain parameter somewhere along the URLs:
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?printable=
Disallow: /index.php?action=
Feedback is greatly appreciated. Thanks.
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
International SEM | Social Media | Search Friendly Design | SEO | Paid Search / PPC | Seminars | Forum Threads | Q&A | Copywriting | Keyword Research | Web Analytics / Conversions | Blogging | Dynamic Sites | Linking | SEO Services | Site Architecture | Search Engine Spam | Wrap-ups | Business Issues | HRA Questions | Online Courses
Blocking Pages Based On Start Of Url Or If They Contain Parameter
Started by
JeremyH
, Apr 04 2009 09:31 AM
2 replies to this topic
#1
Posted 04 April 2009 - 09:31 AM
#2
Posted 04 April 2009 - 12:52 PM
QUOTE(JeremyH)
Can I block pages based on how they start:
That is exactly how robots.txt works.
QUOTE(JeremyH)
Disallow: /Special:
Disallow: /Template:
Disallow: /User_talk:
Disallow: /Template:
Disallow: /User_talk:
Yes, that will work.
QUOTE
What about pages with different starts, but contain a certain parameter somewhere along the URLs:
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?printable=
Disallow: /index.php?action=
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?printable=
Disallow: /index.php?action=
That will work too, but if the parameter may appear anywhere in the URL you may also wish to use wildcards:
CODE
Disallow: /index.php?diff=
Disallow: /index.php?oldid=
Disallow: /index.php?printable=
Disallow: /index.php?action=
Disallow: /*&diff=
Disallow: /*&oldid=
Disallow: /*&printable=
Disallow: /*&action=
Disallow: /index.php?oldid=
Disallow: /index.php?printable=
Disallow: /index.php?action=
Disallow: /*&diff=
Disallow: /*&oldid=
Disallow: /*&printable=
Disallow: /*&action=
#3
Posted 04 April 2009 - 08:29 PM
Thank you very much, exactly what I needed.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users








