I am trying to force my website to redirect to https automatically, but it gives a loop error when I try to do so. I've tried so many different things and nothing is working.
My .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^too\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.too\.com$
RewriteRule ^(.*)$ "https\:\/\/toon\.com\/$1" [R=301,L,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
DirectoryIndex play
How do I get it to work?
My .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^too\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.too\.com$
RewriteRule ^(.*)$ "https\:\/\/toon\.com\/$1" [R=301,L,NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
DirectoryIndex play
How do I get it to work?
Last edited by a moderator: