I have taken over a website and am trying to force https. I have added the following to my .htaccess file:
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L]
The rest of the file looks like this:
RewriteCond %{REQUEST_FILENAME} !^(.*)/audio_recording/(.*)$
RewriteCond %{REQUEST_FILENAME} !^(.*)/bwcheck/(.*)$
RewriteCond %{REQUEST_FILENAME} !^(.+)/page\.php$
... lots of Conditions
RewriteRule ^(.*)\.* page.php?$1 [L]
IndexIgnore *
When I add the https redirect I am getting the following error:
The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
and chrome:
This webpage has a redirect loop...
The url is updated to https however.
EDIT:
Here is the begining of the .htaccess file:
php_value memory_limit 64M
<Files .htaccess>
order allow,deny
deny from all
</Files>
DirectoryIndex index
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
ErrorDocument 404 /web/content/content/404.php