I had an PHP site (mostly php pages) rent a car local site… now have built a new site mostly ajax oriented - html pages…when make new site accessible & official - how keep my SEO & Ranking?
when make new site accessible & official
When it’s ready.
how keep my SEO & Ranking?
If the content of the site is the same as before, then the change of platform won’t itself have an effect your rankings. Remember, it’s the content, as seen by the visitor, that’s important, not the method by which the content is produced.
If the URLs of the various pages have changed, then you will lose the benefit (if any) of any links that point to the old URLs. The solution would be to redirect the old URLs to the new ones.
so redirect index.php to index.html should use…
<?php header( 'Location: index.html' ); ?>
this should keep SEO & RANKING… The only thing not change mydomain.com/index.html between…the transfer correct?
I don’t know if the code you’ve provided is valid or not, but I’m pretty sure that if your new pages are HTML, you can’t use PHP in them.
You’ll need to redirect via the .htaccess file. If it’s just a small site, you can do it for each page. e.g.
Redirect 301 /index.php /index.html Redirect 301 /contact.php /contact.html Redirect 301 /hire.php /hire.html Redirect 301 /repairs.php /repairs.html Redirect 301 /sales.php /sales.html
Or you can try this solution: http://stackoverflow.com/questions/18692942/301-redirect-php-to-html-via-htaccess
my old pages are php but new pages html…
what is bestway:
my way or yours .htaccess - for mainly keeping most of seo and rank?
To keep the benefit of incoming links, you need to redirect your old pages to the equivalent or most appropriate new page. It doesn’t matter which method you use, as long as it achieves this end.
If I’ve understood it correctly, to use your method, you will need to insert the code in the PHP pages, which means keeping them online. Using the .htaccess method, you don’t need to keep the old pages. Your method, by default, returns a 302 “temporary redirect” code to the browser, whereas you want a 301 “permanent redirect”.
I don’t think it matters how you structure the URL. What matters is that you redirect the page, so that links going to the old page now go to the new one, so you don’t lose the benefit of the link, and that the page they redirect to is the most suitable one on the new site, so you don’t lose visitors. (People following old links or bookmarks may simply leave if they suddenly find themselves in unfamiliar territory, which appears not to be relevant.)
If the same page can be reached by more than one URL, then you’ll also want to set a canonical URL. https://support.google.com/webmasters/answer/139066?hl=en
Thanks Mikl for give me very important and useful information about seo, i really need it.
you mean seo / rank NOT lost even redirect one domain to another similar kind site … via .htaccess?
Redirect 301 /index.php http://secondSimilarRentalCarSite.com/index.html Redirect 301 /about.php http://secondSimilarRentalCarSite.com/faq.html Redirect 301 /terms.php http://secondSimilarRentalCarSite.com/faq.html
Nobody can guarantee that you won’t lose ranking with any change, but a proper redirect gives you the best chance here. It also ensures that real, human visitors - the whole purpose of having a site - will still find you if they try to visit via an old link or bookmark. (I know I keep labouring this point, but it seems to me so many people in this forum obsess over search engines and forget about their site visitors.)
If you are changing the domain name as well, then you should also make use of the notification options in Webmaster Tools.