need help from some professional how to redirect old or invalid url
Posted
by
kath
on Server Fault
See other posts from Server Fault
or by kath
Published on 2012-08-31T01:35:41Z
Indexed on
2012/08/31
3:39 UTC
Read the original article
Hit count: 159
I recently upgraded a site and almost all URLs have changed. I have redirected all of them (or so I hope) but it may be possible that some of them have slipped by me. Is there a way to somehow catch all invalid URLs and send the user to a certain page and somehow know what URL the person came from so I could log this, and fix those? I'm thinking I could use .htaccess somehow but am not sure how. I am using PHP Thanks so much!
error file is already in .htaccess but seems nothing going to change you can see the error file as below
AddHandler application/x-httpd-php5s .php ErrorDocument 404 /content/404.php RewriteEngine on RewriteBase /
to see the problem what i want result is i need some thing to redirect if some one types wrong url just check the link even if you delete half of the location at the endof url it still opens http://adsbuz.com/classifieds/abu-dhabi-uae/
it sholud go to the error page but its not giong i neeed some kind force to push it to error page thanks
© Server Fault or respective owner