modifying htaccess as script not working properly