This is a migrated thread and some comments may be shown as answers.

Grid paging links (SEO)

4 Answers 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike Wolf
Top achievements
Rank 1
Mike Wolf asked on 23 Oct 2009, 11:09 PM
I'm trying to figure out if there is a way to convert the SEO grid paging links to something like below:

domain.com/Category-Page2

I know you can do like below, but this isn't what I want:
domain.com/Category?page=2

I am using a URL rewriter and I will have my URLs setup like my example at the top and I'm wondering if there is any way to get the RadGrid to spit out links that match my request?

4 Answers, 1 is accepted

Sort by
0
Mike Wolf
Top achievements
Rank 1
answered on 27 Oct 2009, 03:41 AM
I'm still curious about this...  Any advice?

Thanks.
0
Sebastian
Telerik team
answered on 28 Oct 2009, 01:01 PM
Hello Mike,

Unfortunately this is not possible since the SEO paging of RadGrid relies on query string parameters separated by '?' or "&" symbols. I hope this is not a show stopper for you, otherwise you will need to utilize the standard paging of the control.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Narayan
Top achievements
Rank 1
answered on 25 Nov 2009, 09:54 AM
Hi Sebastian,

Querystring is not a problem for me... I have a diffrent problem.
I am using ISAPIRewrite module (http://www.isapirewrite.com/) to send querystring?

My Example:
current link: www.mydomain.com/news/default.aspx?page=2
I would like to acheive: www.mydomain.com/news/page-2.htm
My Regex code: RewriteRule ^news/page-([^?/]+)\.htm /default.aspx?Page=$1 [QSA]

Using this configuration, if i give request to the page www.mydomain.com/news/page-1.htm it works fine but the only problem is how can i tell RadGrid Pager to use friendly URLs rather than currently generated URLs with querystring?

Also assume, i am on page - 2 and now i am clicking on page - 1 link, it goes to www.mydomain.com/news/default.aspx?page=1. This should go to www.mydomain.com/news/default.aspx. How can i do that? I can not even find postback kind of property.

Your help would be much appriciated.

Kind Regards,
Narayan
0
Sebastian
Telerik team
answered on 25 Nov 2009, 10:09 AM
Hello Narayan,

The SEO paging feature of RadGrid cannot conform to custom urls applied by url rewriters. Therefore, you should either consider disabling he ISAPIRewrite module or switch off the SEO paging and use standard paging.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mike Wolf
Top achievements
Rank 1
Answers by
Mike Wolf
Top achievements
Rank 1
Sebastian
Telerik team
Narayan
Top achievements
Rank 1
Share this question
or