|
So I've wondered for awhile what this is called, when you can link to a page that doesn't exist but use PHP (or maybe htaccess does it) to retrieve the URL and build a page based on it.
For instance, if I request "mywebsite.com/account/register", what would I have to do in order to manage the "register" part of this without actually having a folder called register?
I've seen websites do this, many blogging websites do this and store all kinds of data this way (/blog/2011/05/21/This_is_a_blog). What is it called? How is it done? Where should I go to read about this?
My theory would be to exploit a 404-error page, and turn around and give it a real page instead of an error. But I'm pretty sure that would still give the user a 404 error to their browser, which could cause problems. I don't know, just thinking out loud.
EDIT: I have many times before used GET methods to accomplish this, but it just seems clunky. I would like to use the directory method I tried to describe, and possibly still be able to use GET methods with it.
Last edited by RadGH; 02-01-2012 at 06:26 PM..
|