added the option to not use htaccess