Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1573

Unable to redirect from http to https (htaccess)

$
0
0

I am using XAMPP, CodeIgniter and a SSL certificate from GoDaddy installed in our server. My htaccess configuration is the following:

RewriteEngine OnRewriteCond %{HTTPS} offRewriteCond %{HTTP_HOST} example\.com[NC]RewriteCond %{SERVER_PORT} 80RewriteRule ^(.*)$ https://example.com/$1 [R,L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule .* index.php/$0 [PT,L]

When I enter https://example.com in the browser, it works fine. Also if I put only www.example.com, but when I enter only http://example.com the page will not load. GoDaddy gave me support changing the htaccess file in many ways, but none worked.

Something about my apache configuration? SSL? XAMP?

I also cleared cache, used other computers and also phones (incognito and normal mode).


Viewing all articles
Browse latest Browse all 1573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>