EntropySink

Technical & Scientific => Programming => Topic started by: ober on February 25, 2008, 11:42:32 AM

Title: address redirection
Post by: ober on February 25, 2008, 11:42:32 AM
So here's my scenario:

www.site.com (redirects to www.site.com/site)
www.site.com/site (live site)
www.site.com/v2 (test area)
www.site.com/blahblah needs to be redirected to www.site.com/site/index.php?test3=test2&test=test3

My client is doing some advertisting and he wants a short URL to get to a specific place on the site.  I don't have mod_rewrite (FUCK YOU GODADDY) and I'd like to avoid the "create folder place redirect index in it" route because I want to be able to add multiple entries in case people can't spell.

Is there anyway to do this other than creating a custom 404 page?  I should do the 404 thing anyways, but I'm just wondering if my index that does the site redirect could handle this in some way?
Title: Re: address redirection
Post by: ober on February 26, 2008, 09:37:59 AM
Nevermind, I just used a custom 404 page with some PHP and header redirects to do it.
Title: Re: address redirection
Post by: KnuckleBuckett on February 26, 2008, 09:52:55 AM
FUCK YOU GODADDY

eeeeeeeek
Title: Re: address redirection
Post by: ober on February 26, 2008, 10:37:19 AM
Actually... godaddy's control panel allowed me to do this.  But they still suck.
Title: Re: address redirection
Post by: hans on February 26, 2008, 04:49:13 PM
If you weren't against a parameter URL you could do something like
www.website.com/?abc

but that's slightly awkward for people to type in.
Title: Re: address redirection
Post by: ober on February 26, 2008, 06:29:49 PM
Yeah, I want it nice and clean.  This is going in a magazine.  With a custom 404, I can catch anything and not depend on a particular character to be typed in.