At 09:27 PM 6/9/05, Brion Vibber wrote:
=James Birkholz= wrote:
I can see how to exclude certain directories, but
how can I prevent the
Recent Changes pages, and the edit and history pages of articles from
being crawled?
Set $wgArticlePath to be distinct from $wgScriptPath, end exclude the
script path.
-- brion vibber (brion @
pobox.com)
I'll need more direction than that.
Let's say this is my current, from LocalSettings.php:
$wgSitename = "My Wiki";
$wgScriptPath = "/MyWiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs
# $wgArticlePath = "$wgScript/$1";
$wgArticlePath = "$wgScript?title=$1";
================
If I set $wgScriptPath to a sister directory to /MyWiki, say /Foo, would I
modify the constants to this: ?
$wgScriptPath = "/Foo";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "MyWiki?title=$1";
or should it be the other way around?
$wgScriptPath = "/MyWiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
$wgArticlePath = "/Foo?title=$1";
If so, how would that affect the ugly URLs?
This would be a virtual directory, with nothing in it, right?
Should something else be done? I tried the last change and it didn't change
anything in the URL, even after a hard refresh.
TIA,
James