RewriteEngine On
RewriteOptions inherit

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

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

RewriteCond %{HTTP_HOST} ^demenagementdelouest.com
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule (.*) http://www.demenagementdelouest.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^demenagementileperrot\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.demenagementileperrot\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/www\.demenagementdelouest\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^demenagementmontrealouest\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.demenagementmontrealouest\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/www\.demenagementdelouest\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^demenagementwestisland\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.demenagementwestisland\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/www\.demenagementdelouest\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^westmontrealmoving\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.westmontrealmoving\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^/?$ "http\:\/\/www\.demenagementdelouest\.com" [R=301,L]

redirect 301 /contact.html /nous-joindre.html
redirect 301 /index-en.html /en/
redirect 301 /storage-ile-perrot.html /en/storage-ile-perrot.html
redirect 301 /free_estimate.html /en/free-estimate.html
redirect 301 /moving-checklist.html /en/moving-checklist.html
redirect 301 /contact-us.html /en/contact.html
redirect 301 /demenagement-beaconsfield-dollard-des-ormeaux-pierrefonds.html /demenagement-beaconsfield.html
redirect 301 /moving-company-west-island-ile-bizard.html /en/moving-company-west-island-ile-bizard.html
redirect 301 /moving-company-beaconsfield-dollard-des-ormeaux-pierrefonds.html /en/moving-company-beaconsfield.html
redirect 301 /commercial-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html /en/commercial-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html
redirect /residential-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html /en/residential-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html
redirect 301 /long-distance-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html /en/long-distance-moving-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html
redirect 301 /moving-boxes-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html /en/moving-boxes-ile-perrot-hudson-pincourt-vaudreuil-st-lazare.html

redirect 301 /en/free_estimate.html /en/free-estimate.html

redirect permanent /index.html /
redirect permanent /en/index.html /en

# 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
