PHP coding without "ids" in URL -


i don't know correct term in need of apologize in advance misleading title.

when code in php use ?idname=value such as:

http://domain.com/phpfilename.php?idname=value 

what instead of is:

http://domain.com/mysites/ysub 

live example: http://www.probuilds.net/guide/euw/2263803659/52210396

stackoverflow uses same style don't understand how works?

search pretty or semantic urls.

first part handled webserver, converts pretty url "classic" style url pointing script , adding rest of url url parameter. called url rewrite.

for example:

http://example.com/this/is/pretty/url rewritten http://example.com/script.php?id=this/is/pretty/url

then have variable $_get['id'] containing string "this/is/pretty/url" (usually called slug) instead of integer id in php script. it's how you'll handle in php.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -