I am working on a database drive website. On my index page I have a menu like this:
<ul>
<li> <a href="item1.php">Item 1</a></li>
<li> <a href="item2.php">Item 2</a></li>
<li> <a href="item3.php">Item 3</a></li>
<li> <a href="item4.php">Item 3</a></li>
</ul>
I currently have created separate pages (item1.php / item2.php / item3.php....) Each page calls data from a database based on row 'id': 'item1.php' uses: SELECT * FROM items WHERE id = 1 etc. All 'item' pages are identical except for the fact that they call different rows from the database: item1.php calls id=1, item2.php calls id=2 etc I'm thinking to use a single page (item.php) and populate it based on the $_GET['id'] ie: item.php?id=1 Is there way to write clean URL's with .htaccess and have it so if clicking on the item1.php menu in the index page that it will call item.php but display it as item1.php and fill it will details from the database based on id=1 ? The idea is that I will have hundreds of pages item1.php to item999.php but don't want to have to create a new page for each database row when all pages will be identical except for the fact that they import a different row from the databse. At the same time I want pages item1.php to item999.php to be index by the search engines... I hope I have explained this properly...?