I created a table called cars with 60 rows - it's not a wordpress table, it's my own custom table but I have created it inside the wordpress database.

On my blog theme, editing index.php, I display the records from the table cars, 10 rows per page and I write a custom pagination script with no relation what so ever with my wordpress pagination.

Now i have the following links:
www.myblog.com/index.php?currentpage=1
www.myblog.com/index.php?currentpage=2
and so on untill ...
www.myblog.com/index.php?currentpage=6

How can I rewrite them to pretty goole friendly links?

Ideea one: since they are not actually related to the wordpress blog, should I edit htaccess? I believe wordpress .htacces rules override any custom rules i put there... if you know a solution please share...

Ideea two: Tried to use wordpress rules and edited functions.php like so, with no luck:

Now, if you go to http://www.example.com/currentpage/2/, the file wpse9016_template.php in your theme directory will be loaded, where you can read get_query_var( 'wpse9016_currentpage' ) to get the current page number.

Oh my god, you have no ideea how much i have struggled with this and I'm almost there, you are awesome, tyyyyyyyy, cheers! :) I have just one issue, on my index.page where I have the pagination links, the links won't be rewrited by the server. It's great if i type in my browser ezample.com/currentpage/2, but on my index.php i still get example.com/?currentpage=2... Why? TY TY TY
–
webmastersFeb 10 '11 at 19:48

@webmasters: You have to generate the new style of links yourself, WordPress does not do this for you (unlike other platforms with a complete routing system). What code do you currently use to write the pagination links?
–
Jan FabryFeb 10 '11 at 21:48

Rather than messing with the rewrite rules, it may be easier to move your custom code to a custom page template, then add a new Page which uses that template, then set your site home page to that static page in Settings > Reading.

Again though - not sure what you want to have happen for the pagination. Sorry if I'm way off base in trying to help! :)

Well, if you use a Page with a custom template, you'll get to www.myblog.com/pagename just fine (assuming you have pretty Permalinks enabled in Settings > Permalinks). Since your pagination depends on the custom code you've written, you could then shorten it down at least so it would read www.myblog.com/pagename?p=1 etc. I don't think that Google will detract in any way for having that bit of pagination in the URL - it will just see /pagename.
–
MichelleFeb 9 '11 at 21:35