Menu
For a small-ish site not requiring any particular security, I’m thinking of implementing direct access to certain items, converting [I should say “adding” here – I don’t want the current mechanism to go away] from a url like this:
www.example.com/sports.php?sport=ping-pong
to
www.example.com/ping-pong
Currently, if you type that second url on my site, it redirects to a custom 404 page, where I could easily parse ‘ping-pong’ and do what I want. I there a more appropriate way, though, to make this central hub and direct urls that aren’t otherwise caught by actual file links to it?
All my code is php, no other shiny add-ons.