Hi all, I believe i can get the solution of my problem after long time. My website is 5 years old site, and 2 version English and Spanish before 4 months i have redesign and developed my site in PHP from html my old URL structure was like English version (.com/index.htm) and Spanish Version (.com/spanish/index_es.htm) After developing the new pages in php my one of friend said that you have to redirect the old page to new page other wise your PR will get down and old indexed pages will shows 404 error. So i have followed his advice i have redirected (.com/index.htm) to (com/php/index.php) and (.com/spanish/index_es.htm) to (.com/spanish/php/index_es.php) by JavaScript code as below: <!-- <script language="JavaScript"> var time = null function move() { window.location = 'php/index.php'; } </script> But still the new page have not got crawled and i have studied some blog and forums they are saying that google doesn't support the JavaScript code and they are advising to have below tag: <meta http-equiv="refresh" content="0; url=http://www.yourcompany.com/php/index.php"> Please Advice if I replace the javasript with this tag that create any problem or google will crawl my new URL quick or i can fetch my pr to this page. Please I am waiting for you reply I am worried after spending too money
Javascript redirect is not a good redirect method to use for SEO or web crawler purposes. In fact many robots ignore or move over javascript! You should use Apache .htaccess method for this purpose. Use 301 permanent redirects in the .htaccess file. Google will follow those for sure. Boulder
You must remove the javascript redirect right away and use a 301 redirect using the .htaccess If you do not change quickly the old pages will not pass value to the new pages.
You should use the htacces file and do a 301 redirect for every page, if you have problems doing this you can use the meta refresh - but make sure to have the robots meta tag set to "noindex, follow" !!!
The redirection can also be done without htaccess. We don't have to edit the file so it may be easy.... But don't know exactly about that......
Please do not use any javascript redirection or any of meta refresh redirection. And who tells you to use meta refresh redirection for redirecting old pages to new pages. Its very simple.... Use .htaccess for redirection from old to new page Use this code <-- Code --> Options +FollowSymlinks RewriteEngine on Redirect 301 /oldpage.php(space)http://www.yoursite.com/newpage.html <-- Code -->