Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Problem with DNN 4.9
Previous Previous
 
Next Next
New Post 9/26/2008 8:23 AM
  leom
5 posts
No Ranking


Problem with DNN 4.9 

I have a new DNN install using 4.9 and the latest Friendly URL Provider and Engage Publish installed. These are my Friendly URL Provider settings in the web.config:

<add name="DNNFriendlyUrl" type="iFinity.DNN.Modules.FriendlyUrl.DNNFriendlyUrlProvider, iFinity.FriendlyUrlProvider" includePageName="true" regexMatch="[^\+a-zA-Z0-9 _-]"
                    urlFormat="HumanFriendly"
                    redirectUnfriendly="true"
                    doNotRewriteRegex="(\.axd)|(/DesktopModules/)"
                    doNotRedirect="SearchResults;"
                    doNotRedirectRegex="[.]*(/logoff.aspx)"
                    pageExtensionUsage="always"
                    pageExtension=".aspx"
                    parameterHandling="ordered"
                    ignoreFileTypesRegex="(\.gif)|(\.css)|(\.js)|(\.jpg)|(\.html)|(\.htm)"
                    checkForDupUrls="true"
                    forceLowerCase="true"
                    redirectWrongCase="true"
                    redirectToSubDomain=""
                    replaceSpaceWith="-"
                />

In testing the friendly URLs I have come across the following:

If redirectToSubDomain is an Empty String, when you come into the home page through www.xxxx-dev.org you get redirected to http://xxxx-dev.org. Click on any menu item and you get redirected appropriately (i.e.http://xxxx-dev.org/programming.aspx)

However if you enter as a url http://www.xxxx-dev.org/programming.aspx you get a 404 error. Take off the www. and you find the page.

Now for the flip side. If I have redirectToSubDomain = "www', I can get to the home page, but every other page comes up as a 404.

Any suggestions??? Something I missed? Is it because we have a "-" in the domain name? Right now I am telling the client that since we are early in development that its a bug on my list, but I need to be able to have URL's with the www in the front working.

 

 
New Post 9/26/2008 8:28 AM
  Bruce Chapman
565 posts
1st Level Poster


Re: Problem with DNN 4.9 

Have you added in www.xxx-dev.org and xxx-dev.org as portal aliases?

The empty string in 'redirectToSubdomain' is by design.

You can also use the 'usePortalAlias' option instead of 'redirectToSubdomain'.  This attribute works like this:

usePortalAlias="0,xxx-dev.org" where 0 = the portalId and xxx-dev.org = the chosen portal alias.  You will still have to enter other portal aliases to have the site respond to them, but any request for an alias other than the one specified will result in a 301 redirect to the chosen alias.

 
New Post 9/26/2008 11:27 PM
  leom
5 posts
No Ranking


Re: Problem with DNN 4.9 

Thanks Bruce. Sometimes it's the simplest things that bite you in the butt. I put xxx-dev.org in Portal Alias instead of www.xxx-dev.org. Works great now.

 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Problem with DNN 4.9
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.