Rather than giving a URL,
When accessed by a virtual URL, use the values contained in the URL to retrieve and display information from DB
The idea is thatThis feature is called URL rewrite for the web server.
http://example.com/hoge1/hoge2
when accessed in the .
http://example.com/index.php?id=hoge1&name=hoge2
Rewrite and process internally (how to rewrite depends on your settings).
Usually, you need to write down the settings in detail, but
( .htaccess for Apache, nginx.conf for Nginx, web.config for IIS)
Major PHP frameworks, including Ravel and CakePHP, include
It has routing features that make it easy.
© 2024 OneMinuteCode. All rights reserved.