.htaccess - Auto redirect 404 errors to an amended URL with PHP -


i had move thousands of pages different folder within website. creating bunch of 404 errors , i'm looking way use 404 error page redirect page requests new location.

the files in 'root' folder, in child folder called 'old'.

is possible write script if page sitename.com/content.php requested , receives 404 error, page redirected sitename.com/old/content.php without user noticing?

if possible, please provide little guidance how.

thank you!


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -