"One way to do it would be to use apache rewrite rules to change www.page.com/username/ into www.page.com/script.cgi?u=username."
What is the difference? Indeed, they are the same. The information contained in those two URL's are exactly the same, although they visually appear to be different. They both contain the username.
www.page.com/username/ does not require a seperate physical folder for the username, unless we are saying that URL always matches the path to a file, which is not true. It is all about the logic on the server side, and how it forms content for an URL. There is absolutely no need to map www.page.com/username/ to some file, say index.html, in directory $SERVERHOME/username.
If he has a piece of logic to deal with www.page.com/script.cgi?u=username, the same logic with very slight modification could be used to deal with www.page.com/username/
In reply to Re^2: Ideas on how to redirect users to a specific index
by pg
in thread Ideas on how to redirect users to a specific index
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |