Options -MultiViews Options +FollowSymlinks RewriteEngine on #[L] excludes folders from mod_rewrite RewriteRule ^typo3$ - [L] RewriteRule ^typo3temp/.*$ - [L] RewriteRule ^typo3/.*$ - [L] RewriteRule ^uploads/.*$ - [L] RewriteRule ^fileadmin/.*$ - [L] RewriteRule ^typo3conf/.*$ - [L] AddType "text/javascript" .gzip AddType "text/css" .gzip AddEncoding gzip .gzip #------------------------------------------------------------------------------ # beginning of static file cache ruleset # Don't pull *.xml, *.css etc. from the cache RewriteCond %{REQUEST_FILENAME} !^.*\.xml$ #RewriteCond %{REQUEST_FILENAME} !^.*\.css$ # Check for Ctrl Shift reload RewriteCond %{HTTP:Pragma} !no-cache RewriteCond %{HTTP:Cache-Control} !no-cache # Don't cache HTTPS traffic by default. You may choose to comment out this # option if your site runs fully on https. If your site runs mixed, you will # not want https traffic to be cached in the same typo3temp folder where it can # be requested over http. # Enable this if you use a mixed setup. RewriteCond %{HTTPS} off # NO backend user is logged in. Please note that the be_typo_user expires at the # end of the browser session. So, although you have already logged out of the # backend, you will still have to either restart your browser or remove the # cookie manually for this rule to work. RewriteCond %{HTTP_COOKIE} !be_typo_user [NC] # NO frontend user is logged in. Logged in frontend users may see different # information than anonymous users. But the anonymous version is cached. So # don't show the anonymous version to logged in frontend users. RewriteCond %{HTTP_COOKIE} !nc_staticfilecache [NC] # We only redirect GET requests RewriteCond %{REQUEST_METHOD} GET # We only redirect URI's without query strings RewriteCond %{QUERY_STRING} ^$ # We only redirect if a cache file actually exists # Uncomment the following two lines if you use realurl: ReWriteCond /kunden/homepages/30/d67027059/htdocs/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}%{REQUEST_URI}/index.html%{ENV:TX_NCSTATICFILECACHE_GZIP} -f RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI} [L] # Uncomment the following two lines if you use simulateStaticDocuments: #RewriteCond %{DOCUMENT_ROOT}/typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html -f #RewriteRule .* typo3temp/tx_ncstaticfilecache/%{HTTP_HOST}/%{REQUEST_URI}/index.html [L] # end of static file cache ruleset #------------------------------------------------------------------------------ # 301- Permanently moved to www.domainname.de RewriteCond %{HTTP_HOST} ^physikbuch\.de$ [NC] RewriteRule ^(.*)$ http://www.physikbuch.de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^peterpall.de\.de$ [NC] RewriteRule ^(.*)$ www.peterpall.de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^artbasedscience\.de$ [NC] RewriteRule ^(.*)$ www.artbasedscience.de/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^artbasedscience\.com$ [NC] RewriteRule ^(.*)$ www.artbasedscience.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^chemiebuch\.de$ [NC] RewriteRule ^(.*)$ www.chemiebuch.de/$1 [R=301,L] # Slashes an Pfadenden, aber nicht an html-Dateien RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} (^.htm$|^.html$) RewriteRule (.*[^/])$ %{HTTP_HOST}/$1/ [L,R] # RealURL RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l #Der Slash wird nur fĂr index.php-files als Symlink benötigt. RewriteOptions Inherit ReWriteCond %{HTTP:accept-encoding} (gzip.*) ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$ RewriteCond %{REQUEST_FILENAME}.gz -f RewriteRule ^(.+) $1.gz [QSA,L] RewriteRule .* /index.php # 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. # 1) Uncomment the following lines and # 2) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \/$ mod_gzip_item_include file \.(html|txt|css|js|php|pl).*$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* ### 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. ExpiresActive on ExpiresDefault "access plus 14 days" # FileETag MTime Size FileETag None Header unset Last-Modified Header unset ETag ### End: Browser caching of ressource files ### RewriteEngine On RewriteBase / RewriteRule ^typo3$ - [L] RewriteRule ^typo3/.*$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L] # Add your own rules here AddType x-mapp-php6 .php AddHandler x-mapp-php6 .php #php_flag post_max_size "40M" #php_flag upload_max_filesize "40M" #php_flag register_globals = off #php_value allow_url_fopen = on # # [ enable APC opcode cache for domain #php_flag apc.cache_by_default On # ] # # # [ enable APC opcode cache for domain #php_flag apc.cache_by_default On # ] #