|
I've been using SSI on my site for two years now (I dread it now), and so far it has worked well. But now I'm planning on doing some major upgrades (example: Skin chooser) and for that I need the functionality that PHP provides (i.e. cookies, sessions, etc.). But the problem is that I'm happy with my ratings in Google. If I change my .shtml files into .php I will loose many rankings because of that. What I need is a way to not have to change any file names but still get the function PHP provides..
The two ways I thought of having this done is 1) Redirect all my .shtml files into the .php files. But I've many files and it would be a nightmare. 2) Include PHP files into the SSI using <!--exec cgi=file.php--> I tried it and it seems to work (I tried including a poll into a blank HTML file. I put the PHP code required to include the poll into a php file, than included that php file into an SSI file), but it requires tweaking to PHP scripts and I'm not sure if it will work everytime..
Is there any other way I can do this? And if I were to rename all my .shtml files will I loose rank on Google et al?
Thank you.
|