From f5c2808ff13d9b9dce9a6e2f2ea3989ef686c15c Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Wed, 5 Apr 2006 04:56:21 +0200 Subject: rewrite export URLs This patch rewrites export urls so that robots.txt can be used to request that some (or all) export types are ignored by robots when indexing the wiki. For example: User-agent: * Disallow: _export/ or for example: User-agent: * Disallow: _export/raw/ Note: This rewriting is only done when $conf['userewrite'] is set to '1' for using the rewrite rules from '.htaccess.dist'. darcs-hash:20060405025621-05dcb-b1b5f48681f78d75d25b1e75fab79346fcc8b84e.gz --- .htaccess.dist | 1 + 1 file changed, 1 insertion(+) (limited to '.htaccess.dist') diff --git a/.htaccess.dist b/.htaccess.dist index 77a4b9579..268144d8a 100644 --- a/.htaccess.dist +++ b/.htaccess.dist @@ -16,6 +16,7 @@ #RewriteEngine on #RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L] #RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L] +#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L] #RewriteRule ^$ doku.php [L] #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d -- cgit v1.2.3