: Does Google treat .html pages differently from .php pages? Possible Duplicate: Should I use a file extension or not? My current hosting provider does not let me put PHP code inside
Possible Duplicate:
Should I use a file extension or not?
My current hosting provider does not let me put PHP code inside of a .html page.
So part of my content is in a database and displayed with PHP, but most of it is in pre-rendered .html files.
I'd like to put more of it in .php files however I am concerned that search engines will penalize my .php pages because they are PHP.
Is there any evidence so that effect?
Thanks.
More posts by @Kevin317
3 Comments
Sorted by latest first Latest Oldest Best
First of all don't be concerned about search engines punishing your PHP pages. It should be perfectly fine. The only reason I could think of would be slow loading speed. But for that you would really need to have slow code (loop in a loop etc) and then I would rather be concerned about that slow code in general.
About 'the other' HTML/PHP question:
The HT in HTML means Hyper Text and the HP in PHP means Hypertext Preprocessor…:)
And about the 'trend' of not having extensions at all: you can of course leave the actual file name out if you're using "index.php" or "index.php"
So instead of "contact.php" you use "contact/index.php" and that becomes "contact/".
Hope this reply is of any use?
-cheers- till...
There is a trend not to put any extensions on your web pages but have your pages with plain names like ww.co/index or ww.co/main_page. My understanding is that the name of your page does not really mean anything. The title, keywords, and content are more important. Since so many web sites now use web crawler friendly CMS, I don't see how you can be penalized for using intelligent technology for organizing your web site.
HTML views are generated by PHP, so you wouldn't be putting PHP code in HTML pages anyway. It's perfectly fine to be using PHP pages, as good SEO practices are server-side language agnostic anyway.
That said, you should be setting up clean URLs that don't have file extensions in the first place, and thus there should be no reason for any search engine (or visitor) to know which scripting language you're using.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.