Re: solution
| From: | (Chris Adams) | Date: | Tue, 06 Feb 2001 07:42:17 +0000 |
| Subject: | Re: solution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38361@lists.php.net to get a copy of this message | ||
On 5 Feb 2001 23:31:17 -0800, andreas \(@work\) <myviva@utanet.at> wrote:
>a 404 php-file which extracts the path and generates a page for that out of
>mysql
>
>or is there a better solution out there ?
This approach can work and, properly done, work fairly well. However, a more
elegant approach might be using mod_rewrite on Apache. You could write a regex
that would convert addresses of the form /~username into
/users/homepage.php?User=username internally. This would also have the
advantage of leaving your existing 404 handling unchanged.
Chris