Hello DP members, Here is my problem which I am trying to solve. Any type of help will be appreciated. I have a website with many categories and when user clicks on any category link, the website is showing records in a table of that category with pagination links at the bottom. When user clicks on pagination links, he is reaching to URLs such as On pagination link 1: http://www.websitename.com?category_id=1&page_id=1 On pagination link 2: http://www.websitename.com/category_id=1&page_id=2 On pagination link 3: http://www.websitename.com/category_id=1&page_id=3 The requirement is to create unique URLs for every page link present in the pagination such as On pagination link 1: http://www.websitename.com/text_page1_for_category.html On pagination link 2: http://www.websitename.com/text_page1_for_category.html On pagination link 3: http://www.websitename.com/text_page1_for_category.html Can please someone here guide me that how it can be possible. Is it possible by writing code only in PHP or I need to create new pagination table into MySql database to pull data and write PHP according to the data coming from database?? Thanks, Jimmy
best way is just using the following style www.yoursite.com/categoryname/itemid/title-from-your-item.html www.yoursite.com/categoryname/itemid/title-from-your-item-page1.html www.yoursite.com/categoryname/itemid/title-from-your-item-page2.html etc i myself use this, just because i don't care if the 'subpages' are in searchengines www.yoursite.com/categoryname/itemid/title-from-your-item.html?page=1
What you are looking for is mod_rewrite. You would need to alter your PHP code slightly (just the target of the links), and have Apache accept those custom URLs.