Require SSL and Friendly URLs

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
7/28/2010 11:39:18 AM
Gravatar
Total Posts 156

Require SSL and Friendly URLs

The pages that have "Require SSL" feature enabled end up being redirected via https, but with an ugly URL which exposes pageid.  How do I keep friendly URLs for the pages which use SSL?

7/28/2010 11:46:21 AM
Gravatar
Total Posts 18439

Re: Require SSL and Friendly URLs

Hi,

Try adding this to your user.config

<add key="ResolveFullUrlsForMenuItemProtocolDifferences" value="true" />

then touch Web.config to make it reload settings.

Hope it helps,

Joe

7/28/2010 12:00:32 PM
Gravatar
Total Posts 156

Re: Require SSL and Friendly URLs

Did as you instructed and no luck.
 

7/28/2010 12:05:58 PM
Gravatar
Total Posts 18439

Re: Require SSL and Friendly URLs

I just tried it on my machine and I cannot produce the problem and reviewing the code it is definitely not redirecting to the unfriendly url.

I think you must have something else doing that redirection like IIS url re-writer or some other IIS module or custom code.

Hope it helps,

Joe

7/28/2010 12:09:29 PM
Gravatar
Total Posts 156

Re: Require SSL and Friendly URLs

There is no custom module or code on the page.  The pages, do, however contain html content, which in turn contain code for an iframe.  The reason I'm not using the built-in iframe module directly was because I wanted to add an onLoad event in the declaration and the iframe module settings don't account for that.

7/28/2010 12:33:54 PM
Gravatar
Total Posts 18439

Re: Require SSL and Friendly URLs

I don't see how iframes on the page could have anything to do with it. Possibly some configuration difference, but I need more information to produce the problem since I'm not seeing it. 

I would try different skins and see if that has any effect on the problem and please tell me as much as possible about the installation like is it a root site or sub folder, using multi sites or not, using .NET 3.5 or .NET 4.

If you can identify steps to produce the problem I will treat it as a bug, but otherwise I think there are factors on your installation such as IIS modules or something else involved. Nothing has changed about the SSL support in a long time and no-one else has ever reported having this problem.

Given all your previous questions it seem likely that you are using custom code and produced your own build regardless of whether the page in question has any custom features on it.

Best,

Joe

7/28/2010 1:38:01 PM
Gravatar
Total Posts 156

Re: Require SSL and Friendly URLs

Joe,

In regard to iframes, I was just pointing out the one thing all 3 of these pages had in common aside from requiring SSL.

Yes, I am working on a custom module, but it has nothing to do with the SSL stuff.

I think the problem is my layout.master file as I'm not using menu controls for our menus because I don't see how I can split it, so that a portion of it would be at the top and the other portion would be at the bottom.  We also have an image map that serves as a menu, so that's somewhat problematic.

So when I set ResolveFullUrlsForMenuItemProtocolDifferences attribute in user.config, it would help if I were using a <portal:MageMenu /> control, but I'm not.  If you go on www.niufoundation.org, you'll see how we have a smaller horizontal menu on top, a bigger one at the bottom.  The Flash has some links hard-coded in it and the rest of the pages have an image map to the left of the banner.

I mean, I don't see how all of these could be dynamically hooked to mojoPortal which is what I'd like to do. 

Am I right on here as far as the source of the problem?  Any suggestions as far as the links are concerned because right now I just have the links hard-coded in layou.master as  href="/contact-us", etc.

7/28/2010 1:52:25 PM
Gravatar
Total Posts 18439

Re: Require SSL and Friendly URLs

The setting would only work if using the built in menus. All it does is use the fully qualified url with https for links to secure pages to avoid the ssl redirect completely. You could try the same with your hard coded links, for the secure pages hard code it with https://yoururl.

Many of the included skins in mojoportal illustrate split menus. Typically a top level menu <portal:SiteMenu and then a different menu for child pages <portal:PageMenu. Some, like the adreasvicklund-02 and -alt1 illustrate 2 or more levels of horizontal menus then finally a vertical menu for pages below those levels. Seems like you could do that instead of the image map you are using.

It is not obvious the menu structure in some skins until you create a bunch of pages in hierarchy that shows them, since menus are only shown if they have pages at their level.

Hope it helps,

Joe

7/28/2010 1:58:45 PM
Gravatar
Total Posts 156

Re: Require SSL and Friendly URLs

Yes, I looked into how to display different menus at different levels, but the problem is that these menus consists of pages from various levels, so I can't separate them by levels.

7/28/2010 2:02:36 PM
Gravatar
Total Posts 18439

Re: Require SSL and Friendly URLs

Seems like you could arrange the hierarchy as needed to fit the desired menu structure, but if not, you could create additional pages at the needed level and then set the url for the page to the fully qualified url (with http:// or https:// not ~/someurl) of the target page (that lives at a different level) the same as if you were linking to a different site.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.