Monday, 15 July 2013

php - Making the URL SEO friendly from file in MySQL -



php - Making the URL SEO friendly from file in MySQL -

this question has reply here:

url rewriting php 4 answers

i trying create urls seo friendly. current urls illustration http://example.com/details.php?recordid=35791

i display 'name of event' in url rather 'details.php?recordid=35791' mysql database

i have renamed title using '?php echo $row_rsd1['name of event'];' in php page tab showing correct.

i have many records manually rename.

you can create it.

www.example.com/event-detail-147854-group-meeting.php

here 147854 record id , grouping meeting title of event.

you can convert title lower case , spaces replacing dashes.

then map in .htaccess file.

rewriterule ^event-detail-([0-9]+)-([a-za-z0-9_\-+]+).php event-detail.php?id=$1&title=$2

php mysql .htaccess

No comments:

Post a Comment