I don't know how to explain this, but I will try my best to explain it.
I am developing my website in php. So I have created an index.php file in Search folder
So if I have to search any word like 'good', it's address is
http://127.0.0.1/Website/search/?search=dh
Now if I try to access
http://127.0.0.1/Website/search/
I get an error on my page
Undefined index: search
because it is unable to find my $_GET["search"] variable which I am using to get the value of the input type.
Is there any way by which I can make this url
http://127.0.0.1/Website/search/something
be interpreted as
http://127.0.0.1/Website/search/?search=something