<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

# Fix wrong domain redirect
RewriteCond %{HTTP_HOST} ^www\.sytiqhubev\.com\.sytiqhub\.com$ [NC]
RewriteRule ^(.*)$ https://www.sytiqhubev.com/$1 [L,R=301]

# =========================
# Product Pretty URL
# =========================
RewriteRule ^battery-details/([^/]+)/?$ battery-details.php?id=$1 [QSA,L]

# =========================
# Remove .php extension
# =========================
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^.]+)$ $1.php [L]

# =========================
# Index fallback
# =========================
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

</IfModule>

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