fixed /path/forwarding. uncomment, if you want to use it.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3398 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 18 years ago
parent e0decf4653
commit 42e9747650

@ -79,27 +79,27 @@
return $r; return $r;
} }
###peername.yacypeer.dyndns.org
###rewrite:
###RewriteCond %{REQUEST_URI} /error.html
###RewriteRule ^/(.*) /error.html [L]
###RewriteRule ^/(.*) /index.php?url=$1 [L]
$name = $_SERVER['SERVER_NAME']; $name = $_SERVER['SERVER_NAME'];
$name = substr($name, 0, strlen($name) - $hostlength); $name = substr($name, 0, strlen($name) - $hostlength);
###domain.org/peername/*
###rewrite:
###RewriteRule ^/(.*) /error.html [L]
###RewriteRule ^/([^\/]*)/(.*) /index.php?name=$1&url=$2 [L]
#$name=$_GET['name'];
$seedfile = get($seedurl, $seedfile); $seedfile = get($seedurl, $seedfile);
$peers = decodeSeedList($seedfile); $peers = decodeSeedList($seedfile);
$peer = $peers[strtolower($name)]; $peer = $peers[strtolower($name)];
#peername.yacypeer.dyndns.org
#rewrite:
#RewriteCond %{REQUEST_URI} /error.html
#RewriteRule ^/(.*) /error.html [L]
#RewriteRule ^/(.*) /index.php?url=$1 [L]
#$name=$_SERVER['SERVER_NAME'];
#$name=substr($name, 0, strlen($name)-(strlen($basehost)+1)); //+1 because we filter .$basehost
#domain.org/peername/*
#rewrite:
#RewriteRule ^/(.*) /error.html [L]
#RewriteRule ^/([^\/]*)/(.*) /index.php?name=$1&url=$2 [L]
if (strlen($name) == 0 || $peer == null) { if (strlen($name) == 0 || $peer == null) {
// peer-list // peer-list
@ -143,4 +143,3 @@
</html> </html>
<? <?
} }
?>
Loading…
Cancel
Save