Support Forums

 
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Interesting URL issue...
Previous Previous
 
Next Next
New Post 3/2/2008 4:19 PM
  Chris Hammond
8 posts
No Ranking


Interesting URL issue... 

Hey Bruce, first off, thanks for the excellent work on the URLRewriter.

I just installed it on a few sites, one being www.corvettez06.org

Here's the issue I'm finding.

Here's a URL that google has stored in their index.

http://www.corvettez06.org/tabid/80/itemid/53/A-Corvette-Christmas.aspx

Which is an Engage: Publish url. The way Publish actually links to items would be http://www.corvettez06.org/desktopmodules/engagepublish/itemlink.aspx?itemid=53

With the new URL rewriter installed if I'm on the website and I click on the link that points to itemlink.aspx everything seems to work fine, the new URL ends up being

http://www.corvettez06.org/Blog/itemid/53/A-Corvette-Christmas.aspx as I would expect

However, if I visit the first URL I pasted, from the google index, I end up on

http://www.corvettez06.org/Blog/itemid/53/a-corvette-christmas/+.aspx

notice the difference? /+

I'm worried that all the existing indexed content will show up with the /+ urls, yet when google spiders the site it will go to the URL without the /+ in it, thus creating duplicate pages with the same content.

Any thoughts on why this might be occuring? How to fix it?

Thanks again for everything

Chris Hammond

www.chrishammond.com/

 


http://www.chrishammond.com/
 
New Post 3/2/2008 4:48 PM
  Bruce Chapman
112 posts
1st Level Poster


Re: Interesting URL issue... 

Chris, that's an interesting issue.  The provider is issuing a 301 redirect to a-corvette-christmas.aspx/+.aspx as that is what the friendly Url provider is calculating as the correct friendly Url for the page.   

I think the problem lies in the fact that when the friendly Url provider is called with a 'replacement' page name (in your case, obviously 'a-corvette-christmas.aspx' instead of default.aspx, it goes on the end of the Url OK (which is why it is generating OK). 


The problem comes from working out what the Url should have been, given the old version.  To get the 301 destination, the friendly Url provider is called again, with the details of the page, only I think it is making the assumption that the page used default.aspx as the ending, not 'a-corvette-christmas.aspx'.   The friendly url provider is incorrectly thinking that 'a-corvette-christmas' is instead an incomplete part of a query string, hence it is filling in a blank space '+' as the second part of the query string.  The same thing actually happens to my site if you request the 'products' page with a .aspx on the end - in incorrectly parses the query string, thinking the page name is half a querystring identifier.

In short (if all that doesn't make sense) you've uncovered a bug.  I'll have to put my thinking cap on to fix this one though.  There may not be a satisfactory solution as there is no way for the provider to know when a module on the page is using a non-default page name, and thus it is hard to detect.  I'll have a shot at it though, some regex fancy work might do the job. 

On another note - is the tagging system on that site part of the engage publish module? 

It works OK, but I bet you can't tag all your site content like you can with my Tagger module  :)

[shameless self promotion - how else am I to get my own z06?? (not that you can buy them here anyway)]


Chief Software Hacker
 
New Post 3/9/2008 3:48 PM
  Chris Hammond
8 posts
No Ranking


Re: Interesting URL issue... 

Bruce,

Thanks for the response. If you need me to do any testing let me know, I will gladly try things out on some of my sites.

As for the tagging, yes, the tagging is something I built into Publish a release or two ago. I still have some work to do on it, but it is providing most of the functionality I need now. Right now the tagging ties directly into our versioning and workflow system in Publish.

I'll take a look at your tagging module as well to see how that will work.

Thanks again for the url rewriter, other than this issue it is working great for me on my personal sites.


http://www.chrishammond.com/
 
New Post 3/20/2008 3:20 AM
  Chris Hammond
8 posts
No Ranking


Re: Interesting URL issue... 

Bruce, any chance you've hade some time to think about this one yet?


http://www.chrishammond.com/
 
New Post 3/20/2008 10:04 AM
  Bruce Chapman
112 posts
1st Level Poster


Re: Interesting URL issue... 

Chris, I haven't fixed it yet, but it will be affecting the new Url Master module I wrote as well, so I'll look into it today and get back to you.


Chief Software Hacker
 
Previous Previous
 
Next Next
  iFinity Support Forum  DotNetNuke Modu...  Friendly Url Pr...  Interesting URL issue...
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.