# ---------------------------------------------------------------------- # Better website experience for IE users # ---------------------------------------------------------------------- # Force the latest IE version, in various cases when it may fall back to IE7 mode # github.com/rails/rails/commit/123eb25#commitcomment-118920 # Use ChromeFrame if it's installed for a better experience for the poor IE folk Header set X-UA-Compatible "IE=Edge,chrome=1" # mod_headers can't match by content-type, but we don't want to send this header on *everything*... Header unset X-UA-Compatible # ---------------------------------------------------------------------- # Gzip compression # ---------------------------------------------------------------------- # Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/ SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding # Compress all output labeled with one of the following MIME-types # (for Apache versions below 2.3.7, you don't need to enable `mod_filter` # and can remove the `` and `` lines as # `AddOutputFilterByType` is still in the core directives) AddOutputFilterByType DEFLATE application/atom+xml \ application/javascript \ application/json \ application/rss+xml \ application/vnd.ms-fontobject \ application/x-font-ttf \ application/xhtml+xml \ application/xml \ font/opentype \ image/svg+xml \ image/x-icon \ text/css \ text/html \ text/plain \ text/x-component \ text/xml # ---------------------------------------------------------------------- # Start rewrite engine # ---------------------------------------------------------------------- # Turning on the rewrite engine is necessary for the following rules and # features. FollowSymLinks must be enabled for this to work. # Some cloud hosting services require RewriteBase to be set: goo.gl/HOcPN # If using the h5bp in a subdirectory, use `RewriteBase /foo` instead where # 'foo' is your directory. # If your web host doesn't allow the FollowSymlinks option, you may need to # comment it out and use `Options +SymLinksIfOwnerMatch`, but be aware of the # performance impact: http://goo.gl/Mluzd Options +FollowSymlinks # Options +SymLinksIfOwnerMatch RewriteEngine On # RewriteBase / # ---------------------------------------------------------------------- # Suppress or force the "www." at the beginning of URLs # ---------------------------------------------------------------------- # The same content should never be available under two different URLs - # especially not with and without "www." at the beginning, since this can cause # SEO problems (duplicate content). That's why you should choose one of the # alternatives and redirect the other one. # By default option 1 (no "www.") is activated. # no-www.org/faq.php?q=class_b # If you'd prefer to use option 2, just comment out all option 1 lines # and uncomment option 2. # IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME! # ---------------------------------------------------------------------- # Option 1: # Rewrite "www.example.com -> example.com". RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] # ---------------------------------------------------------------------- # Option 2: # Rewrite "example.com -> www.example.com". # Be aware that the following rule might not be a good idea if you use "real" # subdomains for certain parts of your website. # # RewriteCond %{HTTPS} !=on # RewriteCond %{HTTP_HOST} !^www\..+$ [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # # ---------------------------------------------------------------------- # Prevent 404 errors for non-existing redirected folders # ---------------------------------------------------------------------- # without -MultiViews, Apache will give a 404 for a rewrite if a folder of the # same name does not exist. # webmasterworld.com/apache/3808792.htm Options -MultiViews # ---------------------------------------------------------------------- # Custom Error pages # ---------------------------------------------------------------------- # If you are hosting your site in subdirectory, adjust this accordingly # e.g. ErrorDocument 404 /subdir/404.html ErrorDocument 400 http://havasufallsrvresort.com/notfound.html ErrorDocument 403 http://havasufallsrvresort.com/notfound.html ErrorDocument 404 http://havasufallsrvresort.com/notfound.html ErrorDocument 408 http://havasufallsrvresort.com/notfound.html ErrorDocument 500 http://havasufallsrvresort.com/notfound.html # Commented out due to Google reporting a soft 404 error when active # ErrorDocument 410 http://havasufallsrvresort.com/notfound.html # ---------------------------------------------------------------------- # UTF-8 encoding # ---------------------------------------------------------------------- # Use UTF-8 encoding for anything served text/plain or text/html AddDefaultCharset utf-8 # Force UTF-8 for a number of file formats AddCharset utf-8 .atom .css .js .json .rss .vtt .xml # ---------------------------------------------------------------------- # Redirects & Re-Writes for old, non-existent pages # ---------------------------------------------------------------------- redirect 301 /index.htm http://havasufallsrvresort.com redirect 301 /resort_site_map.htm http://havasufallsrvresort.com/sitemap/ redirect 301 /map_directions.htm http://havasufallsrvresort.com/directions/ redirect 301 /contact_us.htm http://havasufallsrvresort.com/contact/ redirect 301 /resort_rates.htm http://havasufallsrvresort.com/rates/ redirect 301 /resort_amenities.htm http://havasufallsrvresort.com/facilities/ redirect 301 /pool_area.htm http://havasufallsrvresort.com/facilities/ redirect 301 /club_house.htm http://havasufallsrvresort.com/facilities/ redirect 301 /onsite_recreations.htm http://havasufallsrvresort.com/facilities/ redirect 301 /resort_policies.htm http://havasufallsrvresort.com/rates/ redirect 301 /pet_rules.htm http://havasufallsrvresort.com/rates/ redirect 301 /activity_schedule.htm http://havasufallsrvresort.com/facilities/ redirect 301 /birthdays__anniversary.htm http://havasufallsrvresort.com redirect 301 /resort_golf_tournament.htm http://havasufallsrvresort.com redirect 301 /our_office.htm http://havasufallsrvresort.com redirect 301 /photo_gallery.htm http://havasufallsrvresort.com/photos/ redirect 301 /about_lake_havasu.htm http://havasufallsrvresort.com redirect 301 /chamber_of_commerce.htm http://havasufallsrvresort.com/attractions/