[go: up one dir, main page]

Menu

[r2381]: / trunk / apache / htaccess  Maximize  Restore  History

Download this file

37 lines (30 with data), 1.3 kB

###############################################################
# Put the content of this file into the .htaccess (notice     #
# the dot) file in your Web Root directory.                   #
#                                                             #
# Do not forget to replace                                    #
# "yourdomainname.foo" with your real DNS domain name!        #
###############################################################

ExpiresActive on
ExpiresDefault "access plus 2 weeks"
Options -Indexes +Includes
DirectoryIndex index.shtml  
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Header set Strict-Transport-Security "max-age=16070400; includeSubDomains"

# You may need to uncomment one of the following lines:
#AddHandler fastcgi-script .fcgi
#AddHandler fcgid-script .fcgi

RewriteEngine On
RewriteCond %{HTTP_HOST} !=yourdomainname.foo
RewriteRule ^(.*)$ https://yourdomainname.foo/$1 [QSA,R=permanent,L]

# Comment all the following lines if you  
# decide to go with insecure connections (HTTP).
RewriteCond %{HTTPS} =off
RewriteCond $1 !^mobile
RewriteCond $1 !^static
RewriteCond $1 !^cgi-bin
RewriteRule ^(.*)$ https://yourdomainname.foo/$1 [QSA,R=permanent,L]

RewriteRule ^doc - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ cgi-bin/cmbarter.fcgi/$1 [QSA,L]