Mobile app version of vmapp.org
Login or Join
Reiling115

: Will changing SHTML files to PHP change effect how search engines index my site? I have a lot of SHTML pages. If I change these to PHP to add some more functionality (obviously changing stuff

@Reiling115

Posted in: #SearchEngines #Seo #ServerSideScripting

I have a lot of SHTML pages.
If I change these to PHP to add some more functionality (obviously changing stuff like includes to PHP where necessary) will this effect how search engines index my site? (most importantly Google)

Will they still index the PHP files the same as the old SHTML and just as often, etc.?
Will there be any difference?

Background Info:
Server=IIS

This is my thinking/reasoning behind this question. We have a lot of shtml pages.
I think it's because Google will index them all.
E.g.: If you have a file individual_page.php and essentialy this page is many pages; individual_page.php?id=39430403 then Google won't index each one right? But if I have static files, they'll index them all, right?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Reiling115

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

It's also possible for you to run .shtml pages as PHP pages without having to change your file extension. All you need to do is tell Apache to handle .shtml pages as PHP. The following snippet will do that for you:

<FilesMatch ".shtml$">
ForceType application/x-httpd-php
</FilesMatch>


That way you don't have to worry about redirects or pages being reindexed because to users and search engines the URLs will be the same.

Update

1) Google does index pages with query strings just fine. Having them is not a bad thing at all is very common and normal.

2) How ever you are using SSI you can do it the same way in PHP so if you don't have query strings in your .shtml pages then you won't need them in your .php either.

10% popularity Vote Up Vote Down


 

@Angie530

Will they still index the PHP files
the same as the old SHTML and just as
often, etc.?


Providing that the resulting content is served up as HTML with the correct content-type, yes.


Will there be any difference?


If all of the URI's indexed by the search engines are presently in the form of domain.com/file.shtml this will be a major change (your content will effectively disappear until search engines pick up on the new URI's).

You should implement 301 - Permanent redirects from the old URI's to the new URI's for your content (ex. domain.com/file.php) if you want your site's content to maintain its present rankings with major search engines.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme