Hey guys, I just wanted to know if there is a way I could do this algorithm. It deals with redirecting a page to a page in a folder of the same name in case of a dead page (404). 1.) If the page loads correctly, do nothing. 2.) If the page has a 404 error in http://www.domain.com/XXXXX, redirect it to http://www.domain.com/forum/XXXXX. XXXXX is often subsituted as $1 from what I know. 3.) if http://www.domain.com/forum/XXXXX is a dead link, redirect it to a 404 page. Thanks guys.
1. obvious 2. it's possible 3. you'll need to do this checking from within the forum application if you have all URLs rewritten to its handler or if you mean like /forum/LOLLLLL.exe---hi/rrr