There is a problem on pagination. When i rewrite pages like this; http://www.domain.com/category/item/pagenumber/ It works but it doesn't work on the first page that has no page number. Because to "slashes" comes together like this; http://www.domain.com/category/item// What should i do to avoid this? Thank You all.
You're going to have to give more information if you want help. How are you rewriting the URIs? Apache? Nginx? PHP? Without seeing any of your code, I could guess a thousand ways that you are doing pagination and guess another thousand things for each of those ways that might be where your problem lies.
hi give the first page a page number in your script If you want me to do it for you i can do nominal charges apply Regards Alex
I'm adding a &page=23 at the end of the url like; file.php?category=this&item=that&page=12 the problem is, I wish to change page links like the one I wrote before, but I dont want page 1 to appear and I don't wish adjacent slashes too. Thanks in advance. I use PHP and Apache.
If you don't want &page=1 to appear simply do not put it at the end of the url. And in the script you should place this line: if (!isset($_GET['page'])) $page = 1;. else $page = intval($_GET['page']); PHP: So in $page variable you will get the number of necessary page. But I guess the question is about writing a proper .htaccess file too.