I have a site that is currently PR 4 and is ranking well on certain keywords. I have a question about it... If I change the index page from index.html to index.php, will it affect anything? I would say No but I just want to make sure.
Put a 301 redirect in your htaccess file. That way any links will be redirected and your Page Rank will be transfered when Google does an update. The alternative is to add something like addhandler application/x-httpd-php .htm .html RewriteCond %{HTTP_REFERER} !^$ to your htaccess file. This allows htm/html pages to be treated as a php page by the server. So a file even with an htm extension will perform as a php page. I thing you have to remove the "<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">" from the html.
Tell the server to parse php code on html pages in .htaccess Link to the root directory of the homepage, not the page itself so filename changes are not an issue.
What is the added value of changing it to .php, nothing right? Why should you change it then? Don't do it, it's not relevant. On the contrary, on my wordpress blog I have links with .html behind it because visitors are used to that.
I was wanting to include a php file from within the index.html file and it wouldn't work if I had it as index.html, but did when it was index.php. So how can I include a php file such as footer.php within the index.html file? I was using code such as <?php include "footer.php"; ?> but that didn't seem to work.
the php file will only process html to the browser. And you can change your permalink structure to ad .html behind it. But it only make sense to do that if you use a content management system
If you add the handler to your htaccess file and remove the html as my post above you can keep the html file you have with the php include and the server will parse your php include file.
As several people have already stated adding a php handling statement to your htaccess file is the way to go. However I have found that depending on your hosting solution the code to add to that file can vary. I have my sites hosted on 1and1 and the only way to parse a php script within an html file with them is to add the following to your .htaccess file: AddType x-mapp-php4 .html .htm AddType x-mapp-php5 .html .htm So basically if one doesn't work try the others until one works. Hope this helps, I had a fit with this when I was starting out.
I really have no idea. Does my having to do it in this manner indicate they're running an old version?