php - Using item's name in the URL address instead of IDs -
i have built php-mysql website retrieves products database. items taken id in url this: index.php?id=25.
however, read not best alternative seo purposes.
is there simple way have item name , category populated in url instead of id number? or should phone call each item using field name , category database?
thanks!
when print link add together detail (that index.php not utilize anyway).
so links like: index.php?id=25&c=airplanes&q=fighter+jet+z672
index.php function before via id , ignore &c= , &q=.
to create improve you'll utilize .htaccess file rewrite links like: mysite.com/airplanes/25-fighter-jet-z672
php mysql url
No comments:
Post a Comment