We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Force disable HTTPS?

Development and Programming

Mike Stecker's avatar
Mike Stecker
6 posts
12 years ago
Mike Stecker's avatar Mike Stecker

Is there a way to force all HTTPS URL’s to change to HTTP? Somehow people are linking into the site using HTTPS and then CE Cache caches the page with HTTPS in the navigation URLS and I want to put a stop to this somehow. There is nothing on my site that requires security so I want to disable it completely. I have tried turning off HTTPS support in my Plesk Panel but then links to HTTPS URL’s get a server-side error. I’d rather redirect everything if I can.

Any help would be appreciated!

Here is my htaccess file (using NSM htaccess generator):

Options +FollowSymlinks
Options -MultiViews

ErrorDocument 404 /index.php/{ee:404}

<FilesMatch "(\.jpe?g|gif|png|bmp|css|js|flv)$">
  ErrorDocument 404 "File Not Found"
</FilesMatch>


RewriteEngine On

# Block access to "hidden" directories whose names begin with a period.
<IfModule mod_rewrite.c>
  RewriteRule "(^|/)\." - [F]
</IfModule>

# Suppress or force the "www." at the beginning of URLs
# ----------------------------------------------------------------------
<IfModule mod_rewrite.c>
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]

  RewriteCond %{HTTP_HOST} !cirrusdynamics\.com$ [NC]
  RewriteRule ^(.*)$ http://cirrusdynamics\.com/$1 [L,R=301]
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^cirrusdynamics.bm$ [OR]
  RewriteCond %{HTTP_HOST} ^www.cirrusdynamics.bm$ [OR]
  RewriteCond %{HTTP_HOST} ^cirrusdynamics.ca$ [OR]
  RewriteCond %{HTTP_HOST} ^www.cirrusdynamics.ca$ [OR]
  RewriteCond %{HTTP_HOST} ^cirrusdynamics.net$ [OR]
  RewriteCond %{HTTP_HOST} ^www.cirrusdynamics.net$
  RewriteRule (.*)$ http://cirrusdynamics.com/$1 [R=301,L]
</IfModule>

#Handle comment redirection 
RewriteCond %{THE_REQUEST} !^POST 

<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

# Remove the trailing slash to paths without an extension
<IfModule mod_rewrite.c>
  RewriteRule ^(.*)/$ /$1 [R=301,L]
</IfModule>

# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/({ee:template_groups}{ee:pages}members|P[0-9]{2,8}) [NC]
RewriteRule (.*) /index.php/$1 [L]
       
Jeff McKeand's avatar
Jeff McKeand
2 posts
11 years ago
Jeff McKeand's avatar Jeff McKeand

Did you ever find a solution? I’m wrestling with a similar issue. :/

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.