Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


https to https redirection using isapi or coldfusion

Posted on 2010-01-06
Medium Priority
Last Modified: 2013-12-24
Using an isapi rewrite (I'm using helicon 2) or on a coldfusion page, how would I redirect an https url to another https url?
Question by:COwebmaster
  • 3
LVL 15

Accepted Solution

Tray896 earned 1000 total points
ID: 26191945
Have you tried just using the redirect option within IIS?  Properties-->Home Directory-->A Redirection to a URL

Author Comment

ID: 26192031
haven't tried that yet.  which is the best solution to use?

Will the following isapi redirect work?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^online.domain\.com$ [NC]
RewriteRule ^(.*)$ https://www.domainonline.com/$1 [R=301,L]

Author Comment

ID: 26202576
The problem is google has indexed https://online.domain.com (not sure why).  An ssl cert does not exist for that domain. however, another domain I own and have a ssl cert assigned to exists for https://www.permanentdomain.com which points to the same file directory as where https://online.domain.com points to.  I can't simply do a redirection because it would cause an endless loop.

Assisted Solution

alexbumbacea earned 1000 total points
ID: 27657958
<cfif cgi.server_name eq "onlinedomain">
  <cflocation url="https://newdomain/#cgi.query_string#" />

This should work properly if you include it in your main file, before all code.

Author Closing Comment

ID: 31673536

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month12 days, 9 hours left to enroll

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question