How to manage URLs in PHP -


i have urls like:

example.com/category?id=5,

but want url like

example.com/category/category_name.

i use pure php without framework. can please suggest me way it..?

this should try solve webserver, it's not php question. apache, mechanism called modrewrite.

http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html should easy starter.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -