I am trying to redirect http to https by .htaccess But it does not work some where!
This is my domain: www.amirforsati.ir
When i use http like http://www.amirforsati.ir it redirects to https
When i use http like http://www.amirforsati.ir/want it does not redirect to https
My apache .htacces code is:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^amirforsati\.ir [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://www.amirforsati.ir/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^136\.243\.80\.209
RewriteRule (.*) https://www.amirforsati.ir/$1 [R=301,L]
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]