Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterURL Master and blog entries rewrite problemURL Master and blog entries rewrite problem
Previous
 
Next
New Post
4/10/2008 11:26 PM
 

Hi,

#1. For what I have seen, I love your work!

I've downloaded and installed URL master today onto my DNN 4.8.2 site and it seems to work great for most pages. However, when trying to reach my blogentries, I get 404 errors.

Example:
1) With URL master switched off (default provider), the url for my blog entry = http://www.xend.nl/dotnetnuke_2/Blogs/Ewoksauthenticationuniverse/tabid/64/EntryID/1/Default.aspx

2) When I switch on URL master, the url changes into http://www.xend.nl/dotnetnuke_2/Blogs/Ewoksauthenticationuniverse/EntryID/1.aspx
This url generates a 404 error , the resource cannot be found.
If I enter the original url 1) into my browser, my blog entry opens fine (not redirected)

If i feed the original url 1) into the "Test url Rewriting" box on the Host Menu, I get the following:


Ewok's authentication universe

/DotNetNuke_2/Default.aspx?TabId=64&EntryID=1

301 - Permanent Redirect
Location: http://www.xend.nl/dotnetnuke_2/Blogs/Ewoksauthenticationuniverse/EntryID/1.aspx
Reason: Unfriendly Url

If I feed the url listed under internal path processed by DotNetNuke (prefixed with my domain ofcourse) http://www.xend.nl/DotNetNuke_2/Default.aspx?TabId=64&EntryID=1, my blog entry opens fine as well.

If I feed the path http://www.xend.nl/DotNetNuke_2/Default.aspx?TabId=64&EntryID=1 into the Test rewriting url box, I get:




Default.aspx

302 - Redirect
Location: http://www.xend.nl/dotnetnuke_2

The rewrite above seems to indicate it is getting redirected to the home page (which doesn't happen, it opens my blog entry fine). It also indicates no correct pagename...

I am completely lost here! Have I misconfigured or have I run into a bug?
Please help, since I would really like URL master to enhance our site (but since blogging is an essential part of the site, I cannot for now).

Kind regards,

Erik Cheizoo
eXcellence & Difference
The Netherlands
mailto: echeizoo at XenD dot nl

NB: one other, unrelated question. http://www,xend.nl/dotnetnuke_2 is our mainsite, but I would really like to get rid of the /dotnetnuke_2 part in the url (without loosing the ability to have multiple child sites in the future). Can you point me to a page with a HowTo or give me a clue on how to achieve this?

 
New Post
4/11/2008 12:30 AM
 

Forgot to mention. I'm, on Server 2008 web edition and IIS 7

 
New Post
4/11/2008 1:42 AM
 

Sjeiz

Thanks for the detailed post.   I'll have a look into the problems and try and recreate on your setup - but this will take a day or so, you'll have to be patient with me!  

FYI it is possible to remove the 'dotnetnuke_2' from your portal name.  First you need to set up your IIS site so that it is accessible via xend.nl/ , then you need to update your portal alias to xend.nl instead of xend.nl/dotnetnuke_2/

I suspect you have a virtual directory defined when perhaps you want to create a new website.   If that's not enough information for you I should be able to point you in the right direction.

-Bruce

 
New Post
4/11/2008 1:59 AM
 

Bruce,

if it would help you to have access directly to our setup (W2K8/IIs7), preventing you from recreating the problem, send me a pm and I'll get a username / pw to you. The site is not yet live and still under development..

Erik

 
New Post
4/11/2008 2:39 AM
 

I had a light-bulb moment.  If you're running iis7 you probably need to modify the <system.webserver> element, so that the Url rewriting is done by the correct provider.

Try modifying your web.config manually to insert this line into the <system.webserver> section:

<add name="UrlRewrite" type="iFinity.DNN.Modules.UrlMaster.UrlRewriteModule, iFinity.UrlMaster.FriendlyUrlProvider" preCondition="managedHandler"/>

and remove the 'old' one:

<add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules" preCondition="managedHandler"/>

And tell me how that goes.

The problem is you are generating the friendly Urls OK, but not interpreting them correctly - which is a url rewriting problem.  It works OK in the test section because the test section ignores the web.config and works on an in-memory version of the provider.

 


Chief Software Hacker
 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl MasterURL Master and blog entries rewrite problemURL Master and blog entries rewrite problem


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.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).