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.