Register   Login
     
  Latest Posts  
RE: Ratings button appears to anonymous users
by WillJean on 11/20/2008 4:11 AM
Need a tutorial and simple sample to develop token-based module
by nmduc073 on 11/20/2008 3:53 AM
Start on Listing Screen
by jjjansen on 11/20/2008 3:34 AM
RE: Ratings button appears to anonymous users
by smcculloch on 11/20/2008 1:19 AM
RE: Ratings button appears to anonymous users
by WillJean on 11/20/2008 1:04 AM
RE: Is the Archive module an archive or an index?
by Betacam on 11/19/2008 10:34 PM
RE: One latest for a few categories
by aviavia on 11/19/2008 9:35 PM
RE: One latest for a few categories
by aviavia on 11/19/2008 9:30 PM
RE: Ventrian systems .... one men show
by smcculloch on 11/19/2008 9:26 PM
RE: One latest for a few categories
by smcculloch on 11/19/2008 9:26 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