fixed redirect with subfolders
Merge pull request #2067 from Guite/1.4

fixed redirect with subfolders