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

RewriteRule ^laptop/([0-9]+)/([0-9a-zA-Z_-]+) laptop_specs.php?id=$1&urlslug=$2 [NC,L]
RewriteRule ^contact contact.php [NC,L]
RewriteRule ^privacy-policy privacy.php [NC,L]
RewriteRule ^terms terms.php [NC,L]
RewriteRule ^disclaimer disclamer.php [NC,L]
RewriteRule ^brand/([0-9a-zA-Z_-]+)/([0-9]+) laptop_index.php?brand=$1&page=$2 [NC,L]
RewriteRule ^error error.php [NC,L]
RewriteRule ^compare/([0-9]+)/([0-9a-zA-Z_-]+) compare2.php?id=$1 [NC,L]
RewriteRule ^compar/([0-9]+)  compare.php?page=$1 [NC,L]