Can anyone help with this?

Besides using robots.txt, I use the meta tags too.

$wgDefaultRobotPolicy = 'noindex,nofollow';
$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow', NS_USER => 
'index,follow', NS_Timeline => 'index,follow' );

Actually works quite well, anything in in Category, Template, Special, 
Mediawiki, plus edit and history, Property, Forms if you have semantic-wiki 
installed, all have the 'noindex,nofollow' tag. You could use noarchive too 
if you're trying to get some things out of search engines too. Only the 
Main, User and in my case the Timeline namespace will be indexed by Google 
and other search engine bots that behave. All other Namespaces show 
'noindex,nofollow' in the meta header.

Anyway, I want to add my "My Wiki Name" to the NamespaceRobotPolicies. I 
just can't figure out why the namespace is being ignored. I'm starting to think 
this it is a bug. Wikipedia, Wikia, ThisWiki, Thatwiki, Anywiki are all one 
name wikis. What about the ones with a few names and spaces in between? I have 
tried:

NS_MY_WIKI_NAME, NS_My_Wiki_Name, 'NS_My Wiki Name' (had to use ' ' to 
enclose, 500 error without), and every variation I can think of, but it 
still excludes the Wiki's NameSpace. I even tried %20 in between.

I did notice, NS_CATEGORY works, but NS_Category doesn't, however with my 
Timeline NS, I had use NS_Timeline because it is the name of the Namespace and 
not TIMELINE in my LocalSettings.php.

Ideas appreciated?

Tom 
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to