Is it possible to execute PHP codes in HTML file, because i'am making a PHP powered site right now and search engine won't index it if all the pages are .php
Why wouldnt the search engine index it if its all php? There are plently of sites that are all .php and get indexed.
I remember reading this part in some SEO site, anyways there are a lot of sites which are obviously powered by PHP but still have .html pages displaying all the outputs.. how do they do that? Anyways, its not important to know if php sites gets indexed but still i'am curious..
I'm sure You are able to build a SE friendly php site. Well i think the best You can do is to read the google's guidlines. Eg. You can use .htaccess rendering static urls from dinamics.
There are actually 2 ways of doing this. 1. Have a PHP backend, and create a static html site with it. Very complicated. Plus make sure to protect your PHP backend, otherwise anyone can update the pages of your site. 2. Use .htaccess. By the way, take a look at the URL in the address bar. Do you think it won't get indexed? Bye
If you're running apache you can add this line of code to your .htaccess file: AddType application/x-httpd-php .php .html
Maybe i'll just stick with my PHP files as they won't cause any SEO problems, besides modifying my .htaccess files will be confusing on my actual web server.
PHP's output is technically HTML, PHP is just the way its parsed on the server then it is handed to the USER in HTML assuming of course all your coding is based in HTML. Must of the bigger websites use ASP or PHP so they most definately dont have a problem with Search Engines.
Can I see your site's URL? There are some php sites that are indexed by SEs. Are you familiar with mod_rewrite?