updated for .htaccess