RewriteEngine on
RewriteOptions inherit

RewriteCond %{THE_REQUEST} /index\.html? [NC]
RewriteRule ^(.*/)?index\.html?$ /$1 [R=301,L]

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.st-sauveur-hotel-laurentides.com/$1 [R,L]

RewriteCond %{HTTP_HOST} ^st-sauveur-hotel-laurentides.com
RewriteRule (.*) http://www.st-sauveur-hotel-laurentides.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^complexehotelierle60\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.complexehotelierle60\.com$
RewriteRule ^/?$ "https\:\/\/www\.st\-sauveur\-hotel\-laurentides\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^complexele60\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.complexele60\.com$
RewriteRule ^/?$ "https\:\/\/www\.st\-sauveur\-hotel\-laurentides\.com\/" [R=301,L]

redirect 301 /index_fr.php /
redirect 301 /galerie.htmlfeed/ /
redirect 301 /xmlrpc.php /
redirect 301 /home /english
redirect 301 /wp-content /
redirect 301 /wp-includes/wlwmanifest.xml /
redirect 301 /plugins /
redirect 301 /pinterest-lightbox/stylesheets/jquery.pinterest-lightbox.css /
redirect 301 /themes/twentytwelve/style.css /
redirect 301 /contact-form-7/includes/css/styles.css /
redirect 301 /wens-responsive-column-layout-shortcodes/wen-style.css /
redirect 301 /responsive-video/css/responsive-videos.css /
redirect 301 /contact/directions /nous-joindre.html
redirect 301 /chalets.html /chalet.html

redirect 301 /forfait-hebergement-et-theatre-saint-sauveur.html /forfaits-activites.html

redirect 301 /saint-sauveur-laurentides/ /english/
redirect 301 /chalets/ /english/cottage.html
redirect 301 /chalets.php /english/cottage.html
redirect 301 /essentials-when-planning-a-vacation-in-saint-sauveur/ /english/
redirect 301 /gallery/ /english/gallery.html
redirect 301 /photo-5b/ /english/gallery.html
redirect 301 /spartan-race-saint-sauveur-hotel/ /english/packages.html
redirect 301 /saint-sauveur-hotel/ /english/hotel.html
redirect 301 /hotel-saint-sauveur.php /english/hotel.html
redirect 301 /services/ /english/
redirect 301 /services.php /english/
redirect 301 /packages/ /english/packages.html
redirect 301 /packages.php /english/packages.html
redirect 301 /suites/ /english/suites.html
redirect 301 /suites.php /english/suites.html
redirect 301 /condos/ /english/condos.html
redirect 301 /condos.php /english/condos.html
redirect 301 /rooms/ /english/rooms.html
redirect 301 /rooms.php /english/rooms.html
redirect 301 /contact/directions/ /english/contact.html

redirect 301 /fr/services/ /
redirect 301 /services_fr.php /
redirect 301 /fr/essentials-when-planning-a-vacation-in-saint-sauveur/ /
redirect 301 /fr/saint-sauveur-laurentides/ /
redirect 301 /fr/saint-sauveur-hotel/ /hotel.html
redirect 301 /fr/packages/ /forfaits-activites.html
redirect 301 /forfaits.php /forfaits-activites.html
redirect 301 /fr/chalets/ /chalets.html
redirect 301 /fr/suites/ /suites.html
redirect 301 /suites_fr.php /suites.html
redirect 301 /fr/condos/ /condos.html
redirect 301 /condos_fr.php /condos.html
redirect 301 /fr/rooms/ /chambres.html
redirect 301 /chambres.php /chambres.html
redirect 301 /fr/gallery/ /galerie.html
redirect 301 /fr/photo-5b/ /galerie.html
redirect 301 /fr/spartan-race-saint-sauveur-hotel/ /forfaits-activites.html
redirect 301 /fr/contact/directions/ /nous-joindre.html

redirect 301 /fr/ /
redirect 301 /condos.html /
redirect 301 /english/condos.html /
redirect permanent /fr/home/ /


ErrorDocument 404 https://www.st-sauveur-hotel-laurentides.com/

<IfModule mod_deflate.c>
  # 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
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
