mysql - User friendly PHP URL -


this question has answer here:

i`ve learning development of websites , have appreciated quite concepts in php , mysql databases. since use , post end such urls: http://seta.com/news.php?articleid=231. how make urls instead: http://seta.com/news/today.

maybe if 1 helps me on subject can search, don`t know looking for.

this called seo urls or pretty urls. can use .htaccess file , regular expressions rewrite http://seta.com/news/today url http://seta.com/news.php?articleid=231 program program can function without modifications.

if program in dynamically creating these links, have update places it's outputting urls new pretty urls.

another way direct urls news.php , use $_server['request_uri'] extract information url. requires modifications code , stop working ?articleid=123 urls useful during development.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -