![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
redirect http to https
hello im currently building a website and am having some trouble redirecting my
stuff to the secure version of my site... to be honest i have no idea where to start... .htaccess? if someone types 'travisfloors.com' or 'http://travisfloors.com' i need it to redirect to 'https://www.travisfloors.com' how can i do this? |
|
|||
|
Re: redirect http to https
The easiest way is to place this in the head of the page you want
redirected. <meta http-equiv="refresh" content="10;url=https://www.travisfloors.com "> This will redirect in 10 seconds, other than that your host should provide a way. -- Kind Regards Paul Dell .................................. An Eye of Menorca www.dellimages.com .................................. Blog www.paul-dell.com "wbhendrix" <ben@bicfilms.com> wrote in message news:fo2e0u$ct9$1@forums.macromedia.com... > hello im currently building a website and am having some trouble > redirecting my > stuff to the secure version of my site... to be honest i have no idea > where to > start... .htaccess? if someone types 'travisfloors.com' or > 'http://travisfloors.com' i need it to redirect to > 'https://www.travisfloors.com' how can i do this? > |
|
|||
|
Re: redirect http to https
hmm.. is there a certain line i should try and place it? i tried before and
after the <php and i keep getting errors with it... also, i only put it on the login.php page and changed the link to what i thought it should be... would this be right? <meta http-equiv='refresh' content='10;url=https://www.travisfloors.com/login.php'> thanks ~Ben |
|
|||
|
Re: redirect http to https
Put it below the <html> tag.
-- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "wbhendrix" <ben@bicfilms.com> wrote in message news:fo7aar$lae$1@forums.macromedia.com... > hmm.. is there a certain line i should try and place it? i tried before > and > after the <php and i keep getting errors with it... also, i only put it > on the > login.php page and changed the link to what i thought it should be... > would > this be right? <meta http-equiv='refresh' > content='10;url=https://www.travisfloors.com/login.php'> thanks ~Ben > |
|
|||
|
Re: redirect http to https
..oO(Pablo)
>The easiest way is to place this in the head of the page you want >redirected. > ><meta http-equiv="refresh" content="10;url=https://www.travisfloors.com "> Pablo, you should know better and don't give such a bad advice! >This will redirect in 10 seconds Yes, _every_ 10 seconds. Changing from HTTP to HTTPS doesn't change the page content, just the used transfer protocol. The content will be the same, so the same stupid meta refresh will appear again and again on the homepage. And what happens if the user directly enters a deeper page using HTTP? You would have to add that meta thingy to _all_ pages ... The correct way is to check the used method on the server, either in a script (if there's scripting used on that site) or in a .htaccess file, assuming it's an Apache server. Then send an appropriate HTTP status code (301 or 302) back to the browser. In a .htaccess with mod_rewrite this should be nothing more than a two-liner for the entire site. Micha |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|