RewriteEngine On
RewriteBase /
DirectoryIndex index.php
# disable directory browsing
Options All -Indexes
#RewriteRule css/(.*) http://www.domainname.com/ [R=301,L]
#RewriteRule ^(/app.*)$ http://www.google.com/ [R=301,L]
#RedirectMatch 403 ^(/app.*)$
RedirectMatch 403 ^(/bootstrap.*)$
RedirectMatch 403 ^(/copy.*)$
#RedirectMatch 403 ^(/css.*)$
RedirectMatch 403 ^(/Helpers.*)$
RedirectMatch 403 ^(/revisions.*)$
RedirectMatch 403 ^(/views.*)$
#ErrorDocument 500 "Houston, we have a problem."
#ErrorDocument 403 http://error.yourdomain.com/mordor.html
ErrorDocument 403 /403.php
# request is not an existing file (i.e., a css or js file)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# rewrite requests to index.php
RewriteRule ^(.*)$ index.php [QSA,L]