jim9 Posted October 27, 2010 Share Posted October 27, 2010 Hi every one,Is it possible to write <?php some_php_code ?> inside a filename.html file?Thanks in advance Link to comment Share on other sites More sharing options...
birbal Posted October 27, 2010 Share Posted October 27, 2010 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 More sharing options...
jim9 Posted October 27, 2010 Author Share Posted October 27, 2010 its possible to tell your server to parse some other file extension parse as php.How to do so? Link to comment Share on other sites More sharing options...
jeffman Posted October 27, 2010 Share Posted October 27, 2010 Why not name your file as something.php ? Link to comment Share on other sites More sharing options...
jim9 Posted October 27, 2010 Author Share Posted October 27, 2010 Why not name your file as something.php ?Because the .html links, on their website, are page rank two. I don't want to loose them. Link to comment Share on other sites More sharing options...
[dx] Posted October 27, 2010 Share Posted October 27, 2010 You can make php site, but use htaccess which redirects, or html file with refresh and reload meta tag. Link to comment Share on other sites More sharing options...
jim9 Posted October 27, 2010 Author Share Posted October 27, 2010 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 More sharing options...
[dx] Posted October 27, 2010 Share Posted October 27, 2010 So what is page rank two? Link to comment Share on other sites More sharing options...
jim9 Posted October 27, 2010 Author Share Posted October 27, 2010 It is a page that has better chance to apear on top of search engine results. Link to comment Share on other sites More sharing options...
boen_robot Posted October 27, 2010 Share Posted October 27, 2010 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 More sharing options...
justsomeguy Posted October 27, 2010 Share Posted October 27, 2010 There are also instructions for IIS for creating a handler mapping:http://www.php.net/manual/en/install.windows.iis7.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.