[ticket/16] htaccess generated is incorrect

Fix #16