I had to move a CMS to a subfolder. as a result, the URL saved in search engines are pointing to broken link.
what I did to solve the problem is coding a page with PHP as 404 page that gets the broken link, fix it, and then, redirects to the true page on the fly .. or, it'll just point to the index page.
But, unfortunately, I face hard time trying to make it the default 404 page in an Apache server. It just won't, I tried some .haccess tricks but they keep redirecting without sending the requested URL to (404.php) to be fixed ..
I tried to include the code in the 404.shtml, but it won't work ethier.
what all I want is to know the requested URL so that I can handle it ..
any idea?