RewriteEngine On
RewriteOptions inherit

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

redirect 301 /promotion /
redirect 301 /soumission /soumission.html
redirect 301 /realisations /realisations.html
redirect 301 /nous-joindre /contact.html
redirect 301 /estimation-gratuite /estimation-gratuite.html
redirect 301 /ebenisterie-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal /ebenisterie-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html

redirect 301 /renovation-cuisine-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal /renovation-de-cuisine-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html
redirect 301 /vanite-salle-bain-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal /vanite-salle-de-bain-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html
redirect 301 /armoires-de-cuisine-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal /armoires-de-cuisines-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html
redirect 301 /comptoirs-cuisine-salle-de-bain-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal /comptoirs-cuisine-salle-de-bain-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html
redirect 301 /comptoirs-cuisine-salle-de-bain-st-eustache-sainte-therese-boisbriand-terrebonne-rive-nord-montreal.html /



<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>
RewriteCond %{HTTP_HOST} ^astp\.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www\.astp\.ca$
RewriteRule ^/?$ "https\:\/\/www\.atelierst\-pierre\.com" [R=301,L]

# 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
