Welcome to WebmasterWorld Guest from 54.160.177.33

Forum Moderators: phranque

Message Too Old, No Replies

Moving from html to PHP

     
6:18 pm on Sep 25, 2008 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 28, 2003
posts: 490
votes: 0


Hi,

Our website is moving from html to php.
We have good search engine rankings on our keywords and do not want to lose these, the filenames are more or less staying the same except for the PHP.
How can we do this smoothly please, is it through .htaccess?
Will we have major problems with Google?

Please help.
Wayne.

1:29 pm on Sept 28, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 27, 2002
posts:1187
votes: 0


Keep your current file extensions by parsing the php as html through .htaccess

Start here [webmasterworld.com...]

6:21 pm on Sept 29, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:Nov 3, 2007
posts:131
votes: 0


bekyed, take a look at this article from your best friend (The PHP Manual): http://ca.php.net/manual/en/security.hiding.php [php.net]

If you read it, you probably noticed how easy it is to parse HTML pages as PHP, just like jbinbpt mentioned.

Try adding this to your .htaccess file in your root directory:

AddType application/x-httpd-php .htm .html

Here are some of the many advantages of doing:
1. No one will know you use PHP. Hackers can ways guess, for sure. But this is always an extra security factor that helps you.
2. You don't have to worry about losing Google Page rank. Your URLs will remain with the same extension.
3. No need to change the extension of every single file, of course.

Good luck and have fun in the world of PHP.