# $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # # AllowOverride Options # # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # # php_value session.use_trans_sid 0 # php_value register_globals 1 # # ---------------------------------------------------------------------- # Proper MIME type for all files # ---------------------------------------------------------------------- # JavaScript # Normalize to standard type (it's sniffed in IE anyways) # tools.ietf.org/html/rfc4329#section-7.2 AddType application/javascript js # Audio AddType audio/ogg oga ogg AddType audio/mp4 m4a # Video AddType video/ogg ogv AddType video/mp4 mp4 m4v AddType video/webm webm # SVG # Required for svg webfonts on iPad # twitter.com/FontSquirrel/status/14855840545 AddType image/svg+xml svg svgz AddEncoding gzip svgz # Webfonts AddType application/vnd.ms-fontobject eot AddType application/x-font-ttf ttf ttc AddType font/opentype otf AddType application/x-font-woff woff # Assorted types AddType image/x-icon ico AddType image/webp webp AddType text/cache-manifest appcache manifest AddType text/x-component htc AddType application/x-chrome-extension crx AddType application/x-opera-extension oex AddType application/x-xpinstall xpi AddType application/octet-stream safariextz AddType application/x-web-app-manifest+json webapp AddType text/x-vcard vcf # ---------------------------------------------------------------------- # Expires headers (for better cache control) # ---------------------------------------------------------------------- ExpiresActive on # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault "access plus 1 month" # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5) ExpiresByType text/cache-manifest "access plus 0 seconds" # Your document html ExpiresByType text/html "access plus 0 seconds" # Data ExpiresByType text/xml "access plus 0 seconds" ExpiresByType application/xml "access plus 0 seconds" ExpiresByType application/json "access plus 0 seconds" # Feed ExpiresByType application/rss+xml "access plus 1 hour" ExpiresByType application/atom+xml "access plus 1 hour" # Favicon (cannot be renamed) ExpiresByType image/x-icon "access plus 1 week" # Media: images, video, audio ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType video/ogg "access plus 1 month" ExpiresByType audio/ogg "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month" ExpiresByType video/webm "access plus 1 month" # HTC files (css3pie) ExpiresByType text/x-component "access plus 1 month" # Webfonts ExpiresByType font/truetype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month" # CSS and JavaScript ExpiresByType text/css "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" Header append Cache-Control "public" #-- Turn off ETags in HTTP-header #FileETag None #-- Call time pass reference error ?! #php_flag allow_call_time_pass_reference On #-- XTC Session only on first visit #php_flag session.use_trans_sid 0 #----------------------------------------- #- SEO Hartmut König #----------------------------------------- #-- ! Comment this line, if you get an ERROR 500 ! #Options +FollowSymlinks # http://httpd.apache.org/docs/misc/rewriteguide.html RewriteEngine on #-- Sitemap RewriteRule ^sitemap(.*)\.html$ /shop_content.php?coID=8 [qsappend,L] ##-- Kategorien RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$ RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /index.php?cPath=$2&page=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$ RewriteRule (.*):::([_0-9]+)\.html$ /index.php?cPath=$2 [qsappend,L] ##-- Produkte RewriteRule (.*)::(.+)\.html$ /product_info.php?products_id=$2 [qsappend,L] ##-- Content RewriteRule (.*):_:([0-9]+)\.html$ /shop_content.php?coID=$2 [qsappend,L] ##-- Manufacturers RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$ RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ /index.php?manufacturers_id=$2&page=$3 [qsappend,L] RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$ RewriteRule (.*):.:([0-9]+)\.html$ /index.php?manufacturers_id=$2 [qsappend,L] ##-- Fehlerseiten auf die Sitemap lotsen ErrorDocument 400 /sitemap.html?error=400 ErrorDocument 401 /sitemap.html?error=401 ErrorDocument 402 /sitemap.html?error=402 ErrorDocument 403 /sitemap.html?error=403 ErrorDocument 404 /sitemap.html?error=404 ErrorDocument 500 /sitemap.html?error=500 ##-- BOF - Tomcraft - 2009-09-09 - Use canonical URLs # (don't use if your shop runs on a subdomain!) # #RewriteCond %{HTTP_HOST} !^www\. [NC] #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] # ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs