• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Forward http to https

Guest
Oct 20, 2007 Oct 20, 2007

Copy link to clipboard

Copied

Hey Guys,

I am trying to make sure that a certain page requested is alway secure but for some reason the code I am using is not working. Any idea why?

<cfif CGI.SERVER_PORT neq 443>
<cflocation url="https://www.samlpe.com">
</cfif>
TOPICS
Advanced techniques

Views

231

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Oct 22, 2007 Oct 22, 2007
I uses similar code so I know it works. It may be that your cflocation sample does not include the specific page and your default page for the site has the opposite code in it (if port neq 80...)?

Votes

Translate

Translate
Advocate ,
Oct 22, 2007 Oct 22, 2007

Copy link to clipboard

Copied

LATEST
I uses similar code so I know it works. It may be that your cflocation sample does not include the specific page and your default page for the site has the opposite code in it (if port neq 80...)?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation