Click to See Complete Forum and Search --> : Help! I have to fix my client's dumb mistake! (conditional 404 redirect)


calliepeck
10-10-2007, 03:15 PM
I just found out that my client sent their product to press with the wrong url for an "exclusive" content page of the site I'm designing. Namely, they used a forward- instead of a back-slash in the url: www.thesite.com\exclusives


I'm working on my local LAMP server now and I can get a custom error page running fine, but I need to capture the requested url and redirect to the REAL exclusives page ONLY IF they typed in the www.thesite.com\exclusives.

Obviously, since it's exclusive content, I can't just put a link on all 404 pages.


Anyone know how to help me? I can't grab the $_SERVER['REDIRECT_URL'] variable that I'm apparently supposed to access.

Thanks

calliepeck
10-10-2007, 06:04 PM
Ok, so I figured out how to rip that requested url (I was sending absolute paths to my htaccess)

BUT now my error pages aren't coming up for the url with the backwards slash! Aghhh! Big problem--is there any way to snatch those misformed URLs and give them a real error page--anything besides the default?

How do you deal with a backwards slash?