Grow your CSS skills. Land your dream job.

htaccess redirect to https question

  • # April 18, 2013 at 2:57 pm

    How does it work when you do a 301 redirect from http to https? Do they pages actually get served from https, or are they actually served from the https folder?

    I have the following:

    RewriteRule ^(.*)$ https://www.mysite.com/$1 [R=301,L]

    It does redirect and shows the urls as such: https://www.mysite.com/cool-page
    However, it still is serving the pages from the http folder.

    I can tell because if I remove a file from the http folder and try to go to that url through https, it shows a 404 error even tho the URL says it’s going to https (which still does in fact have that file).

    I can do anything to help clarify please let me know, I realize this is all kinda blah to read.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".