Forum Moderators: phranque

Message Too Old, No Replies

Rewrite Pagination URL

         

Joppiesaus

5:47 pm on Oct 29, 2008 (gmt 0)

10+ Year Member



Hello,

Currently my website contains no "?" or other variable stuff in the URL's of any kind. I want t make some "pagination" now (e.g. click here for next 10 products etc). Most of the stuff I found online can do this by adding for instance ?catID=10 to get the next 10 records to the URL.

I really want t do this like this "/10/" or something like that but still make it able to get the next ten results. I've seen this before on good SEO websites, but have no idea how to do this.

I used to do this with a handy wizard, do you guys know a wizard for Dreamweaver that can do this or have a good walktrough on how to do this?

Hope you ca help.

Kind regards.

g1smd

7:22 pm on Oct 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One thing you need to be very clear in defining is what the URL for the "first" page is going to be.

Very often the URL will be different depending on whether you go to the page from the index page, or from page 2 - and that is a very bad idea.

Those type of sites are usually getting the content from a database. Is that what you are doing? The /10/ is fed to a rewrite function that gets the content from the real server location.

Joppiesaus

7:43 pm on Oct 29, 2008 (gmt 0)

10+ Year Member



I was thinking that this was a nice solution:

For instance: www.example.com/red-hats.html shows 10 red hats, then the next ten might look like this:

www.example.com/red-hats.html?catID=10 and so on.

What I thought wuld be better is something like www.example.com/red-hats/10/ or something.

But how to do this?

Joppiesaus

5:55 pm on Oct 31, 2008 (gmt 0)

10+ Year Member



Anyody have any tips on how to do this? Googled [it], but didnt find anything useful.

[edited by: jdMorgan at 7:42 pm (utc) on Oct. 31, 2008]
[edit reason] Tidy-up. [/edit]