I tried the .htaccess method but my site (catholicagora.cf) is not getting any content on my pages.

Here are the contents of the file:

Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css

RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{"scheme":"https"}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


The first thing you have to do is:

You have a problem with your .htaccess because multiple

RewriteEngine On

Only once this line can be used

Every time you use it the server quits everything it did and starts all over again

You don’t need this:



The double RewriteEngine On is definitely going to break stuff. Any time you use RewriteEngine On, it wipes all the previously set redirect rules.

The redirect loop itself seems to be caused by on one hand your website’s code itself redirecting everyone HTTPS to HTTP, and your .htaccess code trying to redirect everyone from HTTP to HTTPS.

To fix this, I suggest disabling the .htaccess rules for HTTPS redirects first. Then you should be able to access your website again (without HTTPS), where you can configure your website to use HTTPS.


Thank you for your answer. Just to followup, how would I go about disabling the .htaccess rules for HTTPS? And also do you happen to know how I can configure my website to use https?

1 Like

Since you seem to be using Oxwall, this forum post should help:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.