Redirecting to https

IN PROGRESS
Project Budget (USD)
$30

Project Description:
I have bug with php / url-rewriting / and https
i use : RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
But i have an other script who rewrite url like url/
I would like just all my website use https

Skills required:
PHP
Project offered by:
Verified