• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

blueacorn
#1 Posted : Wednesday, August 29, 2007 8:31:12 AM(UTC)
blueacorn

Rank: Member

Joined: 6/27/2007(UTC)
Posts: 63

This question comes from an SEO standpoint, and refers to category pages in BVC5.

When you have a category page setup like:
www.mysite.com/category/catA.aspx

With the pagination, the links append a ?page=x at the end of the URL. However, page 1 is exactly the same as the main page. So, we now have to separate URLs:

www.mysite.com/category/catA.aspx
www.mysite.com/category/catA.aspx?page=1

with exactly the same content. From an SEO perspective this is not good. Ideally, I'd like to have the page 1 link in the nav always point to the www.mysite.com/category/catA.aspx page without any page querystring parameter. I'm thinking there's a few ways to solve this potentially:

(1) With some kind of ISAPI rewrite, where anytime a URL comes through with a ?page=1 strip it off and 301 redirect to the URL without the querystring.
(2) Changing the logic behind the pagination - I haven't even looked at the code yet so not sure how difficult this would be, but it would have to change the links for First, Prev (if on page 2), and the #1

Any other ideas or suggestions? Thanks!
Cliff
#2 Posted : Wednesday, August 29, 2007 12:58:52 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

I'm not sure how it could be done in .Net, but I've done it in Rails projects. Basically rewriting the paging URLs so that the first pager is always linked to mysite.com/mypage and the subsequent pagers link to mysite.com/mypage/2 and mysite.com/mypage/3, etc.

If paging is accessible to whatever does the rewriting in BV, I would imagine modifications could be made to include it?
blueacorn
#3 Posted : Wednesday, August 29, 2007 3:57:20 PM(UTC)
blueacorn

Rank: Member

Joined: 6/27/2007(UTC)
Posts: 63

Ok, well I'm going to answer my own question. I've found out how to do it modifying the

\BVModules\Controls\Pager.ascx.vb

There's a few places in there that I modified

- FirstHyperlink to strip out the querystring
- PreviousHyperlink: if we're on page 2 then the previous should not have a querystring
- Pages controls: modified in two places to check if it is page 1, don't use a querystring

That's it! Now all references to ?page=1 have been removed (that I know of at least).
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012