: How to remove the old urls from google search and replace new urls? I know this question has been asked here, and here before , But I have problem with answers, so here is mine : I have
I know this question has been asked here, and here before ,
But I have problem with answers, so here is mine :
I have changed my urls structure ( not my domain ), and I want google to remove the old urls and replace the new ones, and I can't make redirection because I dont know what is it exactly ( its very dynamic ), How can I do this ?
More posts by @Deb1703797
1 Comments
Sorted by latest first Latest Oldest Best
If you can catch them, and you can find a matching new result, I suggest you header like this (in php, maybe you want something else):
header("HTTP/1.1 301 Moved Permanently");
header("Location: /new_location_here");
That way, if you have /some/TESTPAGE with some PR value, and you link it to /new/TESTPAGE via a 301, you move the PR value with it, instead of loosing it.
If you can't find the new page, and they get on your site, send a 404:
header("HTTP/1.0 404 Not Found");
// You can add a default "not found page", or simply exit.
This will not preserve PR value. You kinda allready should have the 404 method though, this is good for SEO (all the not found pages will be duplicate content otherwise).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.