How to use URL structure to call PHP code

I want to use this ->
http://www.example.com/directory/alan-walker

instead of calling alan-walker.php (which is non-existent)
it should call directory.php?s=alan-walker

Is this possible?

I suspect it’s a .HTACCESS rewrite no?

Effectively what this does is it means I can use this
http://www.example.com/directory/alan-walker (good)
instead of
http://www.example.com/directory?s=alan-walker (bad)

Thanks

Read more here:: How to use URL structure to call PHP code

Leave a Reply

Your email address will not be published. Required fields are marked *