Advertisement
Guest User

Untitled

a guest
Jun 15th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. ### Begin: Compression via TYPO3 ###
  2.  
  3. <FilesMatch "\.js\.gzip$">
  4. AddType "text/javascript" .gzip
  5. </FilesMatch>
  6. <FilesMatch "\.css\.gzip$">
  7. AddType "text/css" .gzip
  8. </FilesMatch>
  9. AddEncoding gzip .gzip
  10.  
  11. ### End: Compression via TYPO3 ###
  12.  
  13. ### Begin: Browser caching of ressource files ###
  14.  
  15. # Enable long browser caching for JavaScript and CSS files.
  16.  
  17. <FilesMatch "\.(js|css|gif|jpeg|jpg|png|txt|flv|pdf|ico)$">
  18. <IfModule mod_expires.c>
  19. ExpiresActive on
  20. ExpiresDefault "access plus 31 days"
  21. </IfModule>
  22. FileETag MTime Size
  23. </FilesMatch>
  24.  
  25. ### End: Browser caching of ressource files ###
  26.  
  27.  
  28. ### Begin: Settings for mod_rewrite ###
  29.  
  30. # You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri, SimulateStatic).
  31.  
  32. <IfModule mod_rewrite.c>
  33.  
  34. # Enable URL rewriting
  35. RewriteEngine On
  36.  
  37. # Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
  38. #RewriteBase /
  39.  
  40. #########################
  41. # redirect no-www to www
  42. #########################
  43.  
  44. RewriteCond %{HTTP_HOST} ^(?!www\.)(.+) [NC]
  45. RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L]
  46.  
  47. RewriteCond %{REQUEST_FILENAME} !-f
  48. RewriteCond %{REQUEST_FILENAME} !-d
  49. RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
  50.  
  51. RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
  52. RewriteRule ^fileadmin/templates/.*(\.txt|\.ts)$ - [F]
  53. RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]
  54.  
  55. ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
  56. RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
  57.  
  58. RewriteRule ^typo3$ typo3/index_re.php [L]
  59.  
  60. RewriteCond %{REQUEST_FILENAME} !-f
  61. RewriteCond %{REQUEST_FILENAME} !-d
  62. RewriteCond %{REQUEST_FILENAME} !-l
  63.  
  64. RewriteRule .* index.php [L]
  65.  
  66. </IfModule>
  67.  
  68. ### End: Settings for mod_rewrite ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement