Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Begin: Compression via TYPO3 ###
- <FilesMatch "\.js\.gzip$">
- AddType "text/javascript" .gzip
- </FilesMatch>
- <FilesMatch "\.css\.gzip$">
- AddType "text/css" .gzip
- </FilesMatch>
- AddEncoding gzip .gzip
- ### End: Compression via TYPO3 ###
- ### Begin: Browser caching of ressource files ###
- # Enable long browser caching for JavaScript and CSS files.
- <FilesMatch "\.(js|css|gif|jpeg|jpg|png|txt|flv|pdf|ico)$">
- <IfModule mod_expires.c>
- ExpiresActive on
- ExpiresDefault "access plus 31 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>
- # Enable URL rewriting
- RewriteEngine On
- # Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
- #RewriteBase /
- #########################
- # redirect no-www to www
- #########################
- RewriteCond %{HTTP_HOST} ^(?!www\.)(.+) [NC]
- RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L]
- 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]
- ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
- RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
- RewriteRule ^typo3$ typo3/index_re.php [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-l
- RewriteRule .* index.php [L]
- </IfModule>
- ### End: Settings for mod_rewrite ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement