RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} ^customer\.cervion\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.customer\.cervion\.com$
RewriteRule ^order\-supplies\-form\/$ "https\:\/\/www\.cervion\.com\/customer\-tools\/order\-supplies" [R=301,L]
RewriteRule ^support\/$ "https\:\/\/www\.cervion\.com\/customer\-tools\/request\-support" [R=301,L]

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
		Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but 
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
AuthName "Customer DEV"
AuthUserFile "/home/cervio24/.htpasswds/public_html/customer/passwd"
RewriteCond %{HTTP_HOST} ^customer\.cervion\.com$
RewriteRule ^/?$ "https\:\/\/www\.cervion\.com\/customer\-portal" [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php54 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
RewriteCond %{HTTP_HOST} ^customer\.cervion\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.customer\.cervion\.com$
RewriteRule ^support\/$ "https\:\/\/www\.cervion\.com\/customer\-tools\/request\-support" [R=301,L]

