Mod Rewrite creating too many redirects

ساخت وبلاگ
I'm trying to force my site to use HTTPS.

I've tried the simple option - using a redirect - but this creates too many redirects which I believe is caused by mod_rewrite being used lower down the page to remove .php from files when loaded
Quote:

<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
RewriteRule ^(.*)$ $1.php [L]
</IfModule>
If I try to edit this then it breaks the removal of .php, I'm not too experienced with mod_rewrite so I don't know what else to try or if there's any easier methods
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 224 تاريخ : سه شنبه 6 شهريور 1397 ساعت: 7:47