All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

htaccess – redirect from http to https, but items still seemed to be coming from http

  • # January 4, 2013 at 10:10 am

    I’d like to simply redirect all pages to https.
    I have the following in my htaccess file:



    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

    The issue I’m having is that files have the proper url I’m looking for (https://www.example.com), but are still being served from the http side.
    I have no idea why :(

    Am I going about this incorrectly?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed