############################################
## uncomment these lines for CGI mode
## make sure to specify the correct cgi php binary file name
## it might be /cgi-bin/php-cgi
php_value display_errors on
php_value error_reporting -1
# Action php5-cgi /cgi-bin/php5-cgi
# AddHandler php5-cgi .php
##############################
#AuthType Basic
#AuthName "Password Protected Area"
#AuthUserFile /home/.htpasswd
#Require valid-user
############################################
## GoDaddy specific options
# Options -MultiViews
## you might also need to add this line to php.ini
## cgi.fix_pathinfo = 1
## if it still doesn't work, rename php.ini to php5.ini
############################################
## this line is specific for 1and1 hosting
#AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php
############################################
## default index file
DirectoryIndex index.php
############################################
## adjust memory limit
# php_value memory_limit 64M
php_value memory_limit 2G
php_value max_execution_time 18000
############################################
## disable magic quotes for php request vars
php_flag magic_quotes_gpc off
############################################
## disable automatic session start
## before autoload was initialized
php_flag session.auto_start off
############################################
## enable resulting html compression
#php_flag zlib.output_compression on
###########################################
# disable user agent verification to not break multiple image upload
php_flag suhosin.session.cryptua off
###########################################
# turn off compatibility with PHP4 when dealing with objects
php_flag zend.ze1_compatibility_mode Off
###########################################
# disable POST processing to not break multiple image upload
SecFilterEngine Off
SecFilterScanPOST Off
mod_gzip_on Yes
mod_gzip_dechunk Yes
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.*
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter on all content
###SetOutputFilter DEFLATE
# Insert filter on selected content types only
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# Netscape 4.x has some problems...
#BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
#BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
#SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
#Header append Vary User-Agent env=!dont-vary
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
############################################
## make HTTPS env vars available for CGI mode
SSLOptions StdEnvVars
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
############################################
## enable rewrites
# Options +FollowSymLinks
#RewriteEngine on
#RewriteCond %{HTTP_HOST} ^chocolak\.com [NC]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ http://staging.chocolak.com/$1 [R,L]
## Added by Alok
#RewriteCond %{HTTP_HOST} ^staging.chocolak\.com [NC]
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ http://staging.chocolak.com/$1 [R,L]
## Added by Alok
## visions
# RewriteCond %{HTTP_HOST} !^staging\.
# RewriteRule ^(.*)$ http://staging.chocolak.com%{REQUEST_URI} [R=301,L]
## visions
############################################
## you can put here your magento root folder
## path relative to web root
#RewriteBase /magento/
############################################
## uncomment next line to enable light API calls processing
# RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]
############################################
## rewrite API2 calls to api.php (by now it is REST only)
RewriteRule ^api/rest api.php?type=rest [QSA,L]
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
# RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
# RewriteRule .* - [L,R=405]
Header always set X-Content-Type-Options nosniff
############################################
## redirect for mobile user agents
#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
############################################
## Prevent character encoding issues from server overrides
## If you still have problems, use the second line instead
AddDefaultCharset Off
#AddDefaultCharset UTF-8
############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
##ExpiresDefault "access plus 1 year"
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 year"
# YEAR
Header set Cache-Control "max-age=29030400"
# WEEK
Header set Cache-Control "max-age=604800"
# WEEK
Header set Cache-Control "max-age=604800"
# WEEK
Header set Cache-Control "max-age=604800"
# WEEK
Header set Cache-Control "max-age=604800"
# 45 MIN
Header set Cache-Control "max-age=604800"
############################################
## By default allow all access
Order allow,deny
Allow from all
###########################################
## Deny access to release notes to prevent disclosure of the installed Magento version
order allow,deny
deny from all
############################################
## If running in cluster environment, uncomment this
## http://developer.yahoo.com/performance/rules.html#etags
#FileETag none
###########################################
## Deny access to cron.php
############################################
## uncomment next lines to enable cron access with base HTTP authorization
## http://httpd.apache.org/docs/2.2/howto/auth.html
##
## Warning: .htpasswd file should be placed somewhere not accessible from the web.
## This is so that folks cannot download the password file.
## For example, if your documents are served out of /usr/local/apache/htdocs
## you might want to put the password file(s) in /usr/local/apache/.
#AuthName "Cron auth"
#AuthUserFile ../.htpasswd
#AuthType basic
#Require valid-user
############################################
Order allow,deny
Deny from all
Redirect 301 /gluten-free-caramel-squares http://staging.chocolak.com/dietary/gluten-free
Redirect 301 /7-health-benefits-of-dark-chocolate http://staging.chocolak.com/blog/7-health-benefits-of-dark-chocolate.html
Redirect 301 /chocolate-and-strawberry-granola http://staging.chocolak.com/all
Redirect 301 /7-unique-corporate-gift-ideas-with-chocolate-gift-hampers http://staging.chocolak.com/blog/7-unique-corporate-gift-ideas-with-chocolate-gift-hampers.html
Redirect 301 /healthier-way-to-eat-chocolate http://staging.chocolak.com/blog/healthier-way-to-eat-chocolate.html
Redirect 301 /unique-corporate-gift-ideas-with-chocolate-bars http://staging.chocolak.com/blog/unique-corporate-gift-ideas-with-chocolate-bars.html
Redirect 301 /find-your-best-birthday-chocolates-online-chocolak http://staging.chocolak.com/blog/find-your-best-birthday-chocolates-online-chocolak.html
Redirect 301 /chocolate-chip-pecan-pie http://staging.chocolak.com/all
Redirect 301 /you-can-t-buy-happiness-but-you-can-buy-chocolate http://staging.chocolak.com/blogs
Redirect 301 /brief-on-the-chocolate-industry http://staging.chocolak.com/blogs
Redirect 301 /eating-chocolate-tips-food-and-chocolate-pairings?p=2 http://staging.chocolak.com/blog/eating-chocolate-tips-food-and-chocolate-pairings.html
Redirect 301 /eating-chocolate-tips-food-and-chocolate-pairings?p=3 http://staging.chocolak.com/blog/eating-chocolate-tips-food-and-chocolate-pairings.html
Redirect 301 /collections/bars/products/tavoletta-50g-vista-alegre http://staging.chocolak.com/all
Redirect 301 /chocolate-and-nuts-pasta http://staging.chocolak.com/all
Redirect 301 /collections/praline/products/antica-gianduia-fiorentina-with-golden-spoon-150 http://staging.chocolak.com/praline
Redirect 301 /amazing-chocolate-dipped-pretzels http://staging.chocolak.com/blog/amazing-chocolate-dipped-pretzels.html
Redirect 301 /chocolate-and-pistachio-ice-creambowl http://staging.chocolak.com/blog/chocolate-and-pistachio-ice-creambowl.html
Redirect 301 /hot-chocolate-and-fountain-for-parties http://staging.chocolak.com/blog/hot-chocolate-and-fountain-for-parties.html
Redirect 301 /collections/bars http://staging.chocolak.com/bars
Redirect 301 /chocolate-and-peanut-butter-mug-cake http://staging.chocolak.com/blog/chocolate-and-peanut-butter-mug-cake.html
Redirect 301 /what-does-right-cacao-percentage-mean-for-a-chocolate-bar http://staging.chocolak.com/blog/what-does-right-cacao-percentage-mean-for-a-chocolate-bar.html
Redirect 301 /quick-easy-chocolate-brownies http://staging.chocolak.com/blog/quick-easy-chocolate-brownies.html
Redirect 301 /search?q=milk+chocolate http://staging.chocolak.com/
Redirect 301 /frozen-berry-ginger-yogurt-pops http://staging.chocolak.com/blog/frozen-berry-ginger-yogurt-pops.html
Redirect 301 /milk-chocolate-pinata http://staging.chocolak.com/blog/milk-chocolate-pinata.html
Redirect 301 /collections/all-products/products/tavoletta-50g-mediterraneo http://staging.chocolak.com/all
Redirect 301 /products/tavoletta-50g-mediterraneo http://staging.chocolak.com/all
Redirect 301 /where-to-buy-pralines-online-of-the-best-quality http://staging.chocolak.com/blog/where-to-buy-pralines-online-of-the-best-quality.html
Redirect 301 /collections/gift-ideas http://staging.chocolak.com/gifts
Redirect 301 /your-chocolate-choice-days-about-your-party-style http://staging.chocolak.com/blog/your-chocolate-choice-days-about-your-party-style.html
Redirect 301 /bingsoo-chocolate http://staging.chocolak.com/blog/bingsoo-chocolate.html
Redirect 301 /out-of-the-box-chocolate-recipes http://staging.chocolak.com/blog/out-of-the-box-chocolate-recipes.html
Redirect 301 /eating-chocolate-tips-food-and-chocolate-pairings http://staging.chocolak.com/blog/eating-chocolate-tips-food-and-chocolate-pairings.html
Redirect 301 /pages/shipping-returns-policy http://staging.chocolak.com/terms-conditions
Redirect 301 /search http://staging.chocolak.com/
Redirect 301 /collections/praline http://staging.chocolak.com/praline
Redirect 301 /products/perle-di-toscana-190g http://staging.chocolak.com/all
Redirect 301 /products/morbide-sensazioni-130g http://staging.chocolak.com/all
Redirect 301 /products/antica-gianduia-cappuccino-w-golden-spoon-150g http://staging.chocolak.com/all
Redirect 301 /products/riccetti-80g http://staging.chocolak.com/all
Redirect 301 /products/antica-gianduia-fiorentina-with-golden-spoon-150 http://staging.chocolak.com/all
Redirect 301 /pages/contest http://staging.chocolak.com/
Redirect 301 /collections/all-products http://staging.chocolak.com/all
Redirect 301 /collections/trending http://staging.chocolak.com/all
Redirect 301 /products/cartoccio-150g-1 http://staging.chocolak.com/all
Redirect 301 /products/antica-gianduia-orange-w-golden-spoon-150g http://staging.chocolak.com/all
Redirect 301 /products/prestige http://staging.chocolak.com/all
Redirect 301 /blogs/news/teatime-chocolate-and-eid-ul-adha-with-chocolak-com http://staging.chocolak.com/blogs
Redirect 301 /blogs/news http://staging.chocolak.com/blogs
Redirect 301 /collections/all-products/products/signature http://staging.chocolak.com/all
Redirect 301 /all/products/signature http://staging.chocolak.com/all
Redirect 301 /collections/birthday-gifts http://staging.chocolak.com/gifts
Redirect 301 /blogs/news/chocolates-at-your-doorstep http://staging.chocolak.com/blogs
Redirect 301 /blogs/chocolates-at-your-doorstep http://staging.chocolak.com/blogs
Redirect 301 /products/glamor http://staging.chocolak.com/all
Redirect 301 /products/couple http://staging.chocolak.com/all
Redirect 301 /collections/all-products/products/morbide-sensazioni-130g http://staging.chocolak.com/all
Redirect 301 /all/products/morbide-sensazioni-130g http://staging.chocolak.com/all
Redirect 301 /products/blue-pralines http://staging.chocolak.com/all
Redirect 301 /products/nocciolato-al-latte-100g?variant=19382114631 http://staging.chocolak.com/all
Redirect 301 /catalog/category/view/s/chocolate-bars/id/42/ http://staging.chocolak.com/all
Redirect 301 /collections/praline/all-products?page=1 http://staging.chocolak.com/all
Redirect 301 /praline/all-products http://staging.chocolak.com/all
Redirect 301 /collections/chocolate-gianduia.atom http://staging.chocolak.com/all
Redirect 301 /blogs/news.atom http://staging.chocolak.com/blogs
Redirect 301 /account/register http://staging.chocolak.com/
Redirect 301 /collections/all-products/products/fette-darancia-80g http://staging.chocolak.com/all
Redirect 301 /all/products/fette-darancia-80g http://staging.chocolak.com/all
Redirect 301 /recipe http://staging.chocolak.com/recipes
Redirect 301 /praline. http://staging.chocolak.com/praline
Redirect 301 /gifting-chocolates-online-to-impress-your-loved-ones http://staging.chocolak.com/blog/gifting-chocolates-online-to-impress-your-loved-ones.html
Redirect 301 /unknown-health-tips-of-chocolate http://staging.chocolak.com/blog/unknown-health-tips-of-chocolate.html
Redirect 301 /a-food-scientist-sprinkling-her-powder-of-thoughts-about-food http://staging.chocolak.com/blogs
Redirect 301 /amazing-chocolate-dipped-pretzels http://staging.chocolak.com/blog/amazing-chocolate-dipped-pretzels.html
Redirect 301 /chocolate-making-process-from-scratch http://staging.chocolak.com/blog/chocolate-making-process-from-scratch.html
Redirect 301 /chocolate-box-recipe-gift-idea http://staging.chocolak.com/blogs
Redirect 301 /bars/chocolates/duo-pistachios-from-cappadoce http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/klassic-white http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/tavoletta-50g-vista-alegre http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-banana-speculoos http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-coco-puffed-rice http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-orange-cinnamon http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-red-fruit-bresil http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/klassic-white-pistachios http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/klassic-white-amaretti http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-exotic-fruits http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45g-pralin-nougat http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/bar-45-g-manon-coffee http://staging.chocolak.com/bars/chocolates
Redirect 301 /bars/chocolates/mono-milk-speculoos http://staging.chocolak.com/bars/chocolates
Redirect 301 /chocolak-a-gourmet-chocolate-lovers-paradise http://staging.chocolak.com/blog/chocolak-a-gourmet-chocolate-lovers-paradise.html
Redirect 301 /blog/chocolak-premium-chocolates-giveaway-open-to-all-countries.html http://staging.chocolak.com/blogs
Redirect 301 /blog/chocolate-doesn-t-ask-silly-questions-chocolate-understands.html http://staging.chocolak.com/blogs
Redirect 301 /blog/free-evaluation-online-store-for-premium-chocolates-chocolak.html http://staging.chocolak.com/blogs
Redirect 301 /blog/my-top-10-chocolate-covered-recipes-and-a-delicious-giveaway.html http://staging.chocolak.com/blogs
Redirect 301 /chocolates-can-be-good-birthday-presents http://staging.chocolak.com/blog/chocolates-can-be-good-birthday-presents.html
Redirect 301 /amazing-chocolate-dippedpretzels http://staging.chocolak.com/blog/amazing-chocolate-dipped-pretzels.html
Redirect 301 /products/sfogliate-assortite-200g http://staging.chocolak.com/all
Redirect 301 /collections/all-products/products/tartufi-del-granduca-210g http://staging.chocolak.com/all
Redirect 301 /all/products/tartufi-del-granduca-210g http://staging.chocolak.com/all
Redirect 301 /products/{{handle}} /all