Default the root view in cherrypy <p>In <a href="https://github.com/metaperl/metaperl-proxy">some source code</a> I am writing, I am able to make a request such as:</p> <pre><code>http://proxy.metaperl.org/index/bitgold-rw1 </code></pre> <p>And have it redirect successfully.</p> <p>However, I want to remove <code>index</code> from the URL and have it still redirect by using the <code>index()</code> method. I tried renaming <code>index()</code> to <code>default()</code> after reading about <a href="https://cherrypy.readthedocs.org/en/3.2.6/concepts/dispatching.html">Dispatching</a>, but it still does not allow me to have a URL like this:</p> <pre><code>http://proxy.metaperl.org/bitgold-rw1 </code></pre> <p>It tries to find a method named <code>bitgold-rw1</code> instead of using the default method to resolve the request, gving me the error:</p> <pre><code>NotFound: (404, "The path '/bitgold-rw1' was not found.") </code></pre> <p>The WSGI startup file looks like this:</p> <pre><code># -*- python -*- # core import os import sys # 3rd party import cherrypy # local def full_path(*extra): return os.path.join(os.path.dirname(__file__), *extra) sys.path.insert(0, full_path()) import config import myapp application = cherrypy.Application( myapp.Root(), "/", config.config) </code></pre>