How to send user to https to specific pages using htaccess

hello,

i have this basic htaccess with following code which i am using for seo purpose on my site:

DirectoryIndex index.php
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* showpage.php [QSA,L]

What it does is if someone visits someurl.com/test-page.htm then it gives test-page.htm to showpage.php and appropirate data is picked from database and displayed.

Now i have some other php files also which I want so that when a user visits those files then htaccess should show them over https (using SSL) and not http.

How to do this without breaking my seo thing ?

Thanks.

Put the rules that redirect to https:// before the existing rules, and use a redirect flag. After they’re redirected they won’t match the force-SSL rules anymore and will get to your SEO rules.