homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Moving from html to PHP
bekyed




msg:3752105
 6:18 pm on Sep 25, 2008 (gmt 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.

 

jbinbpt




msg:3753751
 1:29 pm on Sep 28, 2008 (gmt 0)

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

Start here [webmasterworld.com...]

cosmoyoda




msg:3754734
 6:21 pm on Sep 29, 2008 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved