-
Notifications
You must be signed in to change notification settings - Fork 35
/
.htaccess
55 lines (46 loc) · 2.27 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# --------------------------------------------------------------------
# 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]