I am serving a test file through apache using Bottle.
Following are my apache config:
WSGIDaemonProcess temp user=www-data group=www-data processes=1 thr
Another workaround is to add this redirection in your Apache configuration file :
RedirectMatch 301 ^/(temp)$ /$1/
This will add a / at the end of your index page, so you don't have to modify your code.