HTML to php - How to get Google to realize the change?

Ramsweb

Supreme Member
Joined
Mar 31, 2010
Messages
1,252
Reaction score
731
Hello all

I recently had a basic 6 page HTML site converted to a E-Commerce PHP site with over 150 pages when you count in all the shopping cart pages, individual product pages etc..

Google has crawled my site recently but has indexed only the HTML pages that I built links to. How do I carry out further backlinking??? as in, should I build links to index.php or my domain name as in xxx.com.

Also, how can I get Google to crawl all the php pages. Any help will be greatly appreciated.

Thanks
Ramsweb
 
If you want to get better results fot the mainpage make the links with you domain. If you want some subpages to rank better, add the link from the subpage...:eek:
 
Google will catch on eventually... Just make sure you're linking to the proper pages throughout your site and in your xml sitemap submitted to GWT.

Since index.php is your index file, linking to it and xxx.com are the same thing but I wouldn't want xxx.com/index.php showing up for my site in google or any other search engine so whenever I do backlinking, internal or external, I never add index.php onto my links.
 
if you use webmaster tool, just create a sitemap xml and submit it to go0gle all your pages will get index in no time..
 
Ramsweb, believe it or not influxes of a great deal of content can almost be bad sometimes. Don't worry to much about everything getting indexed right away. The more gradual the better. In other words, don't force internal linking to pages that dont appear to be indexed to try to have bots cover more ground. Just do links that best suit visitors and you will get more mileage in the long run.
 
If you have already built existing backlinks to your .html pages, then keep those pages with the .html extension - don't change them to .php. G will perceive the .html and the .php versions to be two completely separate urls.

You can tell apache to parse .html pages for php code by adding these line to your .htaccess file:

Code:
AddType application/x-httpd-php .htm .html
AddHandler x-httpd-php  .htm .html

Also, in general you should never link to your index.html or index.php file directly. You're better off linking to the subdirectory with the trailing slash - ie. link to http://www.domain.com/ rather than http://www.domain.com/index.php. That way, you can change your index file (.htm to .html to .php) with impunity, and all your backlinks will point to the right place. domain.com/index.html and domain.com/index.php are two separate urls, with separate backlinks.
 
Last edited:
Thank you guys for your replies. A big thanks to Autumn for your very detailed reply. I have given rep for all :)
 
Back
Top