Hi,
I am specifying:
$wgDefaultRobotPolicy = 'index,follow'; $wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' ); $wgArticleRobotPolicies = array( 'Main Page' => 'index,follow' );
in my LocalSettings.php file but it is not generating any "robot.txt" file. Mediawiki is supposed to generate this file right?
Thanks,
gbtkjd dgjksbg wrote:
Hi,
I am specifying:
$wgDefaultRobotPolicy = 'index,follow'; $wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' ); $wgArticleRobotPolicies = array( 'Main Page' => 'index,follow' );
in my LocalSettings.php file but it is not generating any "robot.txt" file. Mediawiki is supposed to generate this file right?
No, this controls the meta tags that inform robots of how to handle individual pages. It does not generate a robots.txt file.
MinuteElectron.
Hi,
So 1) How do I generate robot.txt and 2) How do add mediawiki entries in that file.
Thanks,
--- On Mon, 7/14/08, MinuteElectron minuteelectron@googlemail.com wrote: From: MinuteElectron minuteelectron@googlemail.com Subject: Re: [Wikitech-l] not able to generate robot.txt with $wgDefaultRobotPolicy To: the_rock3353@yahoo.com, "Wikimedia developers" wikitech-l@lists.wikimedia.org Date: Monday, July 14, 2008, 11:50 AM
gbtkjd dgjksbg wrote:
Hi,
I am specifying:
$wgDefaultRobotPolicy = 'index,follow'; $wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' ); $wgArticleRobotPolicies = array( 'Main Page' =>
'index,follow' );
in my LocalSettings.php file but it is not generating any
"robot.txt" file.
Mediawiki is supposed to generate this file right?
No, this controls the meta tags that inform robots of how to handle individual pages. It does not generate a robots.txt file.
MinuteElectron.
On Mon, Jul 14, 2008 at 1:21 PM, gbtkjd dgjksbg the_rock3353@yahoo.com wrote:
So 1) How do I generate robot.txt and 2) How do add mediawiki entries in that file.
Create it manually. You don't need MediaWiki to do this for you. See this page on mediawiki.org:
wikitech-l@lists.wikimedia.org