Home | History | Annotate | Download | only in server2

Lines Matching refs:Redirect

17   def Redirect(self, host, path):
29 redirects. Returns the URL to the redirect, if any exist, or None.
46 redirect = rules.get(filename)
47 if redirect is None:
49 if (redirect.startswith('/') or
50 urlsplit(redirect).scheme in ('http', 'https')):
51 return redirect
53 return posixpath.normpath(Join(redirected_dirname, redirect))
74 redirect = redirects.get(posixpath.join(filename, '...'))
76 if redirect is None:
79 redirect = Join(base, redirect.rstrip('...'))
82 if redirect in seen_redirects:
84 seen_redirects.add(redirect)
86 Join(redirect, posixpath.relpath(url, sub_url)))
92 ''' Redirect paths from the old code.google.com to the new