Jump to content

Can I write PHP code in .html file?


jim9

Recommended Posts

you have to installed server and php to parse the php code. otherwise all will be shown as plain text.you cant use php code in a file *.html execpetion: there is some other way to make it. its possible to tell your server to parse some other file extension parse as php. but by default it wont do that. it must be *.php

Link to comment
Share on other sites

You can make php site, but use htaccess which redirects, or html file with refresh and reload meta tag.
Will the htaccess lift up the .php page to page rank two? I wanted to link from the .html (pagerank two) to another website so that the target website benefits :) from the pagerank two links and visitors. :)
Link to comment
Share on other sites

The extension has no positive or negative effect on SEO. Unless you have an exsisting ".html" page with a certain good page rank, which you're then renaming to ".php", you won't see any difference. If that's the case, then yes, you'll experience a negative SEO effect, unless the sites that link to you also changes the extension - in that case, the negative effect will only be temporary.The setting is dependant on the way PHP runs as, but basically it comes down to seeing the installation instructions, and replacing every occurance of ".php" with whatever extension you want - ".html" in this case. Ask your host if you can do that.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...