fixed SSL redirection bug when using subpaths.
0.2.5