Adding RewriteCode in https does not work for links other than base url
Adding these lines to the default .htaceess file worked for me

# Force HTTPS across the Drupal site
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
&lt;/IfModule&gt;


Also enable clean URLs for that site