Fixed indent
app: added path  ends with  '/ ' redirect support
security: fixed secure secert encode