Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
robots.txt by namespace
Avatar
seb_1204 #1
Member since May 2008 · 32 posts · Location: AU;Sydney
Group memberships: Members
Show profile · Link to this post
Subject: robots.txt by namespace
hi,

is it possible to control certain namespaces by robots.txt?

e.g.:
allow: ../doku.php?id=blog:*
disallow: ../doku.php?id=private:*

thanks for the help,

seb
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3509 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No. At least not in the suggested form. robots.txt only works on directories. You need to enable rewriting and set the useslash option to use a robots.txt for namespaces.

Robot exclusion can also done via headers, there might be a syntax plugin that can set those headers for you. Check your self.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 13:20:44 (UTC +01:00)