okjim3GH/xindi/master/.htaccess - Htaccess File

okjim3GH/xindi/master/.htaccess

# --------------------------------------------------------------------
# enable URL rewriting for this directory and subfolders
# --------------------------------------------------------------------
# Note that you may need to edit the apache/conf/http.conf and enable
# the rewrite_module by uncommenting the following line:
#
# LoadModule rewrite_module modules/mod_rewrite.so
#
# Also change "AllowOverride None" to "AllowOverride All" in the
# <Directory "C:/mywebserver-root/htdocs">
# section
#
# documentation for mod_rewrite can be found at:
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html
#
# --------------------------------------------------------------------

#RewriteEngine On

# --------------------------------------------------------------------
# SQL Injection Protection 
# --------------------------------------------------------------------

#RewriteRule ^.*EXEC(@.*$        - [R=404,L,NC]
#RewriteRule ^.*CAST(.*$         - [R=404,L,NC] 
#RewriteRule ^.*DECLARE.*$        - [R=404,L,NC]  
#RewriteRule ^.*DECLARE%20.*$     - [R=404,L,NC]
#RewriteRule ^.*NVARCHAR.*$       - [R=404,L,NC]  
#RewriteRule ^.*sp_password.*$    - [R=404,L,NC]
#RewriteRule ^.*%20xp_.*$         - [R=404,L,NC]

# --------------------------------------------------------------------
# 301 redirect for non-www links to www 
# --------------------------------------------------------------------

#RewriteCond %{HTTP_HOST}  ^domainname.com [nocase,OR]
#RewriteCond %{HTTP_HOST}  ^otherdomainname.com [nocase,OR]
#RewriteCond %{HTTP_HOST}  ^www.otherdomainname.com [nocase]
#RewriteRule ^(.*)         http://www.domainname.com/$1 [redirect=301,last]

# --------------------------------------------------------------------
# trap invalid URLs and return 410 (G=Gone)
# --------------------------------------------------------------------

#RewriteRule ^index.cfm/(.)+.(ico|css|js)$ - [L,G]
#RewriteRule ^.*favicon.ico$ - [L,G]

# --------------------------------------------------------------------
# exclude index.cfm from URL
# --------------------------------------------------------------------

#RewriteRule ^$ index.cfm [QSA]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ index.cfm/%{REQUEST_URI} [QSA,L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache