Hi,
> On 2020-04-15, at 21:22, ARN NN <
arn....@gmail.com> wrote:
>
> Is this possible via config?
I tried your example, but it led to a redirect loop.
I had success with the following code:
#!/usr/bin/env python3
import cherrypy
class Website:
@cherrypy.expose
def index(self):
raise cherrypy.HTTPRedirect("/xyz")
@cherrypy.expose
def xyz(self):
return "Hello from xyz"
if __name__ == "__main__":
cherrypy.quickstart(Website(), "/")
--
"You can't actually make computers run faster, you can only make them do less." - RiderOfGiraffes