### AutoSSL-Satellite Don't Edit Below This Line ###
<IfModule mod_rewrite.c>
RewriteEngine On

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</IfModule>
### AutoSSL-Satellite Don't Edit Above This Line ###


RewriteEngine On


# --------------------------------------------------
# Redirect index.php to root
# --------------------------------------------------

RewriteCond %{THE_REQUEST} \s/index\.php[\s?]
RewriteRule ^index\.php$ / [R=301,L]


# --------------------------------------------------
# Product SEO URL + Tracking Code
#
# /product/product-slug
# /product/product-slug/tracking-code
# --------------------------------------------------

RewriteRule ^product/([^/]+)/([^/]+)/?$ product.php?slug=$1&tracking=$2 [L,QSA]

RewriteRule ^product/([^/]+)/?$ product.php?slug=$1 [L,QSA]