toolman Posted January 9, 2012 Share Posted January 9, 2012 Hi, I have set up a new website, but the old website is using /mainpage.html as it's homepage when searching in Google. This page no longer exists, so when a user clicks on the page in Google, the website is not found. Is there a way i can set up a forwarder to point the missing file to the new index.php page? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/254650-redirect-of-missing-page/ Share on other sites More sharing options...
Muddy_Funster Posted January 9, 2012 Share Posted January 9, 2012 do you still have access to mainpage.html on the original site? Quote Link to comment https://forums.phpfreaks.com/topic/254650-redirect-of-missing-page/#findComment-1305756 Share on other sites More sharing options...
toolman Posted January 9, 2012 Author Share Posted January 9, 2012 I have backups, but I don't want that page on the server. I have also noticed there are other old pages missing that are linked in Google. Can I do a 301 redirect so any missing pages go to the new homepage until the website is re-spidered? Quote Link to comment https://forums.phpfreaks.com/topic/254650-redirect-of-missing-page/#findComment-1305760 Share on other sites More sharing options...
Muddy_Funster Posted January 9, 2012 Share Posted January 9, 2012 depends on the level of access you have on the server. I think the best solution (could be wrong though) is to edit the htaccess file and redirect it on the server its self. Other than that you can use headers to redirect the pages, but I think that could bugger the google lookup (unless the NOBOTS meta tag still works...) It's not really an area which I am femilliar with. Quote Link to comment https://forums.phpfreaks.com/topic/254650-redirect-of-missing-page/#findComment-1305765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.