RewriteEngine On

# Redirect ke HTTPS + NON-WWW
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.dehradunqueens\.com$ [NC]
RewriteRule ^(.*)$ https://dehradunqueens.com/$1 [L,R=301]

# Hilangkan trailing slash pada file .html
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+\.html)/$ /$1 [R=301,L]

# Redirect spesifik rudrapur-escorts.html/
RewriteRule ^rudrapur-escorts\.html/$ /rudrapur-escorts.html [R=301,L]