I am preparing a technology news website in php and mysql. My problem is when i trying to retreive the data from the database it getting like www.domain.com?id=25 in url. But its not good to look and also in seo. I want to see the post as www.lala.com?post_title. Can any one tell me that how to retreive the data like this using php and mysql.

You need to incorporate URL Rewriting. Use .htaccess so you can rewrite those URLs that contain query string parameters for SEO friendlier versions.

You can do a search on this site for htaccess and you'll find other similar posts.

Here is a recent similar article: http://www.daniweb.com/web-development/php/threads/461100/url-rewrite

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.