I have a CMS that I've built, and I'd like to allow users to access a specific page without a query string. So, normally they would go to the page by referencing it's ID in the database:
www.something.com/main.php?id=2
I would like the CMS users to be able to give a specific page a name, like "mypage", so that the page could be access without the page name and querystring, like:
www.something.com/mypage
Does anyone know where to start to figure this out? I haven't been able to figure out the magic combination of words to describe this problem and find a solution by searching.
I have seen this done in one other CMS, so I know it's possible, at http://www.albertaworldcup.com/dyn/junetesting. In this case "dyn" is a PHP page that has no .php extension, and it is somehow using explode() on $_SERVER['REQUEST_URI'] to determing the "junetesting" variable. Would it be possible to do this without the /dyn, so the page could be just www.albertaworldcup.com/junetesting?
The only solution I can come up with is actually writing a directory for each named CMS page, and putting an index.php pointer file in it to refer to the correct page, but that seems like a messy solution...
I assume this involves some server configuration also, but if anyone can point me in the right direction that would be helpful.