# Enable mod_rewrite
RewriteEngine On

# Set the base to the root of your domain
RewriteBase /

# SEO-friendly URL for shops
RewriteRule ^shop/([a-z0-9\-]+)/?$ /shop/index.php?slug=$1 [L,QSA]

# Optional: Redirect non-www to www (if you prefer)
# RewriteCond %{HTTP_HOST} ^its-insight\.com [NC]
# RewriteRule ^(.*)$ https://www.its-insight.com/$1 [L,R=301]

# Optional: Force HTTPS
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]
