andrejmaya/fti-trips/master/.htaccess - Htaccess File

andrejmaya/fti-trips/master/.htaccess

#####
# 
# Example .htaccess file for TYPO3 CMS - for use with Apache Webserver
# 
# This file includes settings for the following configuration options:
# 
# - Compression via TYPO3
# - Settings for mod_rewrite (URL-Rewriting)
# - PHP optimisation
# - Miscellaneous
# 
# If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its
# not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to
# adjust the 'AllowOverride' directive in your Apache configuration file.
# 
# IMPORTANT: You may need to change this file depending on your TYPO3 installation!
#
# Lines starting with a # are treated as comment and ignored by the web server.
# 
# You should change every occurance of TYPO3root/ to the location where you have your website in.
# For example:
# If you have your website located at http://mysite.com/
# then your TYPO3root/ is just empty (remove 'TYPO3root/')
# If you have your website located at http://mysite.com/some/path/
# then your TYPO3root/ is some/path/ (search and replace)
# 
# You can also use this configuration in your httpd.conf, but then you have to modify some lines,
# see the comments (search for 'httpd.conf')
# 
# Questions about this file go to the matching Install mailing list, see
# http://typo3.org/documentation/mailing-lists/
# 
####

### Begin: Compression via TYPO3 ###

# Compressing resource files will save bandwidth and so improve loading speed especially for users
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
# *) Uncomment the following lines and
# *) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' for the Backend
# *) Set $TYPO3_CONF_VARS['FE']['compressionLevel'] = '9' together with the TypoScript properties
#    config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files.

#<FilesMatch ".js.gzip$">
#  AddType "text/javascript" .gzip
#</FilesMatch>
#<FilesMatch ".css.gzip$">
#  AddType "text/css" .gzip
#</FilesMatch>
#AddEncoding gzip .gzip

### End: Compression via TYPO3 ###

### Begin: block specific files from direct http calls ###
<Files ~ ".(ts|txt)$">
    order allow,deny
    deny from all
</Files>
### END: block specific files from direct http calls ###

### Begin: Browser caching of ressource files ###

# Enable long browser caching for JavaScript and CSS files.

# This affects Frontend and Backend and increases performance.
# You can also add other file extensions (like gif, png, jpg), if you want them to be longer cached, too.

<FilesMatch ".(js|css)$">
  <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 7 days"
  </IfModule>
  FileETag MTime Size
</FilesMatch>

### End: Browser caching of ressource files ###

### Begin: Settings for mod_rewrite ###

# You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri, SimulateStatic).

<IfModule mod_rewrite.c>
    RewriteEngine on

    

    ### assest begin - TYPO3
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+).(d+).(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
 
    RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
    RewriteRule ^fileadmin/templates/.*(.txt|.ts)$ - [F]
    RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
    RewriteRule ^(typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon.ico) - [L]
    ### assest end - TYPO3

    ### Zend2 begin ###  
    RewriteRule ^.htaccess$ - [F]
     
    RewriteCond %{REQUEST_URI} =""
    RewriteCond %{HTTP_USER_AGENT} !^TYPO3_CONNECT.*$
    RewriteCond %{HTTP_COOKIE} !^.*be_typo_user.*$ [NC]
    RewriteRule ^.*$ /frontend/public/index.php [NC,L]
     
    RewriteCond %{REQUEST_URI} !^/frontend/public/.*$
    RewriteCond %{HTTP_USER_AGENT} !^TYPO3_CONNECT.*$
    RewriteCond %{HTTP_COOKIE} !^.*be_typo_user.*$ [NC]
    RewriteRule ^(.*)$ /frontend/public/$1
     
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteCond %{HTTP_USER_AGENT} !^TYPO3_CONNECT.*$
    RewriteCond %{HTTP_COOKIE} !^.*be_typo_user.*$ [NC]
    RewriteRule ^.*$ - [NC,L]
     
    RewriteCond %{HTTP_USER_AGENT} !^TYPO3_CONNECT.*$
    RewriteCond %{HTTP_COOKIE} !^.*be_typo_user.*$ [NC] 
    RewriteRule ^frontend/public/.*$ /frontend/public/index.php [NC,L]
    ### Zend2 end ###

    ### TYPO3 begin ###
 
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteCond %{HTTP_USER_AGENT} ^TYPO3_CONNECT.*$ [OR]
    RewriteCond %{HTTP_COOKIE} ^.*be_typo_user.*$ [NC]
    RewriteRule .* index.php [L]
    ### TYPO3 end ###   

</IfModule>

### End: Settings for mod_rewrite ###

### Begin: PHP optimisation ###

# If you do not change the following settings, the default values will be used.

# TYPO3 works fine with register_globals turned off.
# This is highly recommended, if your web server has it turned on.
#php_flag register_globals off

### End: PHP optimisation ###

### Begin: Miscellaneous ###

# Make sure that directory listings are disabled.
#Options -Indexes

### End: Miscellaneous ###

# Add your own rules here.
# ...

On Github License

Files

Download PDF of Htaccess file
HTTP_COOKIE, HTTP_USER_AGENT, REQUEST_FILENAME, REQUEST_URI

Comments

Apache