Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirect from https to http
Previous Previous
 
Next Next
New Post 4/27/2008 8:42 PM
  AJ
34 posts
8th Level Poster


Redirect from https to http 

How do I redirect from https to http?  The old site had every page accessable thru both, and both were indexed by Google, but now I want it to only go thru http.  How can I set this up when the page url editor only allows me to enter the relative portion of the URL?

btw its ~300 redirects because thats how many urls the old site had.  I guess it will be ~600 redirects if I have to redirect every https individually as well.  My question on performance was about processing time - will it add a significant overhead to each request if it has to match on a long list of URLs?

Alan

 
New Post 4/28/2008 9:15 AM
  Bruce Chapman
103 posts
1st Level Poster


Re: Redirect from https to http 

Alan

You should use the 'SSL Settings' section which is in the Admin->SIte Settings page.   Mark your site as 'SSL Enforced'  and 'SSL Enabled'.  Then, on the pages which are to be secure only, find the 'Secure' checkbox under 'Other Settings' in the Page Settings.

Note this is standard DNN behaviour and nothing to do with the Friendly Url Provider.

As for performance, the lookups are done with a typed dictionary collection, which is supposed to not be affected by collection size.  The only performance hit will be done when the collection is built, which is done at system startup or when the cached collection expires due to a new page being added, or a page name being changed, or adding in a new redirect.  You can read your event log to see how often the page index is being rebuilt.

-Bruce


Chief Software Hacker
 
New Post 4/28/2008 10:25 AM
  AJ
34 posts
8th Level Poster


Re: Redirect from https to http 

Hi Bruce, the problem is that none of the pages are secure, and none of the pages should be accessable via https - it must be http only.

Due to problems on the old site (non-DNN), Google was able to access every single page as both https and http, and Google indexed every single page using both https and http.

So I need to 301 redirect https -> http, so that those pages indexed as https are reindexed back to the correct http url.  It is a duplicate content problem.

If I enable SSL, and do not check the Secure checkbox on any pages, do you think this will have the desired effect?  I will have to try it and see what status codes is returned when https is requested.

Thanks, Alan

 
New Post 4/28/2008 8:57 PM
  AJ
34 posts
8th Level Poster


Re: Redirect from https to http 

Well, by setting Enable SSL and Enforce SSL on - we get:

HTTP/1.1 200 OK
Connection: close

The connection is just closed for some reason.  This discussion is now extended to the snapsis forum on this related thread .. http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/16/postid/6400/view/topic/tpage/2/Default.aspx
Alan

 
New Post 4/28/2008 11:03 PM
  Bruce Chapman
477 posts
1st Level Poster


Re: Redirect from https to http 

I see John replied to that thread saying that the connection would be closed because there is no port 443 enabled.  Perhaps you coudl try generating and installing your own certificate, just so that the redirection worked OK.

You could try writing a new rule for the siteurls.config file, but this does 302 redirects, not 301 - still would help though.

The current architecture of the Url master module isn't really set up for handling the https -> http type redirects, although it probably could be done.  I think there is probably an easier way though - like trying out a dummy ssl cert just to get the DNN redirection working.

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Url Master  Redirect from https to http
Can't find the answer?
 

If you can't find the answer and don't have time...try out the Premium Support service.  Get personal attention and get the problem fixed by an expert.

 

Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

If you wish, you can use the Premium Support Service for one-on-one support.