SEO : old Url to new URL htacess and PHP way
old Url to new URL htacess and PHP way:
ErrorDocument 404 /errors/404error.php
Use the below code of php for the 404error.php file
If you had an old URL say product10.html and now U have it as mobile-name.html.
The scenario is that either Search engine value of that page is lost.
To over come this we searched across and found this solution.
// BOF 49.248.5.148/development/oscprofessionals-new-theme
// Redirect visitors with a custom 404 error page.
$request=$_SERVER
['REQUEST_URI'];
$urlarray=array("/product10.html"=>"/mobile-name.html");
if(array_key_exists($request,$urlarray))
else
// EOF 49.248.5.148/development/oscprofessionals-new-theme
?>
