title: Static files not loaded in a Bottle application when the trailing slash is omitted
body: <p>I am serving a test file through apache using Bottle.</p>
  
  <p>Following are my apache config:</p>
  
  <pre><code>WSGIDaemonProcess temp user=www-data group=www-data processes=1 threads=5
  WSGIScriptAlias /temp /opt/gridops/usage/temp/adapter.wsgi
  
  &lt;Directory /opt/gridops/usage/temp&gt;
          WSGIProcessGroup temp
          WSGIApplicationGroup %{GLOBAL}
          Order deny,allow
          Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p><code>adapter.wsgi</code>:</p>
  
  <pre><code>import os,sys
  os.chdir(os.path.dirname(__file__))
  sys.path = ['/opt/gridops/usage/temp'] + sys.path
  os.chdir(os.path.dirname(__file__))
  sys.stdout = sys.stderr
  import bottle
  print "++"*10
  import index # This loads your application
  application = bottle.default_app()
  </code></pre>
  
  <p><code>index.py</code>:</p>
  
  <pre><code>from bottle import mount, run 
  from routes import app
  from bottle import default_app
  default_app.push(app)
  #run()
  #run(app=app, host='192.168.1.3', port=8085) 
  </code></pre>
  
  <p><code>routes.py</code>:</p>
  
  <pre><code>from bottle import Bottle , run,route,static_file,view,template,post,request
  
  app = Bottle()
  print str(dir(app))
  @app.route('/static/&lt;filename&gt;')
  def server_static(filename):
      return static_file(filename, root='static')
  
  @app.route('/') 
  def index(): 
          return template('template',text='This is index page!')
  </code></pre>
  
  <p><code>template.tpl</code>:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;link rel="stylesheet" type="text/css" href="static/prettify.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  {{text}}
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Directory Listing</strong></p>
  
  <pre><code>temp/
    adapter.wsgi
    index.py
    routes.py
    static/
       prettify.css
    views/
       template.tpl
  </code></pre>
  
  <p>My issue is whenever I try to access the Bottle app using <code>http://192.168.1.3/temp</code> the webpage shows up without the static files, but whenever i access <code>http://192.168.1.3/temp/</code> [Please note the extra <code>/</code>] the page loads properly. What modification should I do such that the result of both 
  <code>http://192.168.1.3/temp</code> and <code>http://192.168.1.3/temp/</code> become the same?</p>
  
  <p>Any help would be highly helpful</p>