[nycphp-talk] URL Trick...
Chris Snyder
chris at psydeshow.org
Thu Jun 19 09:43:55 EDT 2003
Have you looked at mod_rewrite?
Once you get the hang of it, it's pretty easy. I think you'd want
something like:
RewriteCond %{REQUEST_FILENAME} ^/[0-9]+
RewriteRule ^/([0-9]+) /somepage.php?variable=$1 [L,R]
Downsides: you have to read the manual, and you probably have to
recompile Apache-- it's not enabled by default.
Upsides: people will think you're an Apache guru, and so you shall be.
chris.
Pete Czech - New Possibilities Group, LLC wrote:
>Hey all:
>
>I want to redirect a user to a page based on a URL, but the URL doesnt exist. IE, if I had:
>
>www.xyz.com/123
>
>it would redirect to:
>
>www.xyz.com/somepage.php?variable=123
>
>Anyone have any idea how to do it???
>
>Thanks,
>
>Pete Czech
>Director of Technology
>New Possibilities Group, LLC
>pete at npgroup.net
>http://www.npgroup.net
>
>
>
>--- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
>
>
More information about the talk
mailing list