added redirects for subfolders
added rewrite rule to .htaccess to prevent external access to PHP libraries