quand search ne trouve qu'on seul rsultat, il appele http_redirect
quand on est sur le www, on redirige vers du www darcs-hash:20060424171642-4ec08-d8b7a7fc93eb9e10a02dd84fa5c634c53b78beb1.gz
This commit is contained in:
parent
6799e03451
commit
ca91bf8c33
1 changed files with 5 additions and 0 deletions
|
@ -935,6 +935,11 @@ space between words. Group page name is not allowed.""") % self.user.name
|
||||||
if url.find("://") == -1:
|
if url.find("://") == -1:
|
||||||
url = self.getQualifiedURL(url)
|
url = self.getQualifiedURL(url)
|
||||||
|
|
||||||
|
#### DEBUT HACK : pour le www, on redirige vers du www
|
||||||
|
if self.remote_addr == '138.231.136.3':
|
||||||
|
url = url.replace('http://wiki','http://www')
|
||||||
|
#### FIN DU HACK
|
||||||
|
|
||||||
self.http_headers(["Status: 302", "Location: %s" % url])
|
self.http_headers(["Status: 302", "Location: %s" % url])
|
||||||
|
|
||||||
def setResponseCode(self, code, message=None):
|
def setResponseCode(self, code, message=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue