# Set the cache-control max-age
# 1 year
#<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
#Header set Cache-Control "max-age=31449600, public"
#</FilesMatch>
# 2 DAYS
#<FilesMatch "\.(xml|txt)$">
#Header set Cache-Control "max-age=172800, public, must-revalidate"
#</FilesMatch>

# The rules below basically say that if the file exists in the tree, just
# serve it; otherwise, go to index.php. This is more future-proof for your
# site, because if you start adding more and more content types, you don't
# need to alter the .htaccess to accomodate them.
# This is an important concept for the Front Controller Pattern which the
# ZF MVC makes use of.

RewriteEngine On

RewriteCond %{HTTP_HOST} competitionsbywyndham\.com\.au$ [NC]
#RewriteRule ^(.*)$ https://secure.wyndhamvrap.com/alpha/$1 [R=302,L]
RewriteRule ^(.*)$ https://www.winholidaynshop.com.au [R=302,L]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]