Welcome to WebmasterWorld Guest from 54.145.136.73

Forum Moderators: phranque

Moving from html to PHP

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

10+ Year Member



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 Sep 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

Start here [webmasterworld.com...]

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

5+ Year Member



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.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month