Register   Login
     
  Latest Posts  
RE: Start on Listing Screen
by jjjansen on 11/20/2008 6:25 PM
RE: My customizations to EditAlbum.ascx.vb... threaded sync, memory leak fix, other bug fixes
by markjjordan on 11/20/2008 4:58 PM
multi language site
by Tiram on 11/20/2008 4:43 PM
Download Module
by MarkSensei on 11/20/2008 4:05 PM
RE: Remove Kick it! | DZone it! | del.icio.us, etc
by burnt on 11/20/2008 3:46 PM
RE: Remove Kick it! | DZone it! | del.icio.us, etc
by jcochran on 11/20/2008 3:42 PM
RE: Reproducible Bug
by jcochran on 11/20/2008 3:39 PM
RE: File Links in feeds
by jhoelz on 11/20/2008 3:30 PM
File Links in feeds
by jhoelz on 11/20/2008 3:15 PM
RE: Select Files button not working
by bmlynn on 11/20/2008 2:54 PM
  Forums  
Subject: BUG: Appending queries to end of friendly url
Prev Next
You are not authorized to post a reply.

Author Messages
Jason KoskimakiUser is Offline
Registered Users
Nuke Wiz
Nuke Wiz
Posts:194

7/24/2007 7:25 PM  

I have not tested this against a current version but it is obscure enough I will assume it has not been fixed and that it is in fact a problem.

In RewriterUtils.vb:

 

Change

context.RewritePath(sendToUrlLessQString,

To

context.RewritePath(sendToUrlLessQString,

As an example, if you have a url path such as mywebsite.com/forums/tid/2323/thread.aspx?pid=2 then Request.Url.ToString would have an extra ?. But with this fix, an extra ? is removed. I have had google have problems indexing pages where I add the ? to the end of a friendly url and think this may be the fix for it.

DISCLAIMER: I have customized this provider heavilly so I am not sure if this is an actual problem. But try it out and see.

NOTE: There are reasons to append ? at end of a friendly url instead of making it a parameter. For instance, I don't want google to think I have a bunch of duplicate content (with many different parameters within the url string as opposed to appended as a querystring) that still display the same content. Adding it to the end, google may recognize it as a query.

String.Empty, queryString.Replace("?", "&"))
String.Empty, queryString)
Friend Shared Sub RewriteUrl(ByVal context As HttpContext, ByVal sendToUrl As String, ByRef sendToUrlLessQString As String, ByRef filePath As String)

Social Networking Site for Young Professionals - My DNN Site w/ lots of Ventrian Modules
pbryanUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:12

7/25/2007 12:15 AM  
Duplicate post go to
http://www.ventrian.com/Support/ProductForums/tabid/118/forumid/35/postid/22399/view/topic/Default.aspx
You are not authorized to post a reply.
Forums > Projects > Friendly Urls > BUG: Appending queries to end of friendly url



ActiveForums 3.7