| | |
html vs. php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hello all master coders,
I have been doing my site exclusivley in html. What is the big differences bewteen php and html? What are the advantages/disadvantages? What, if any would be the penalty from going from an html site to a php site? Would this hurt the PR I have already gotten as well as the search results? Woud it appear to be a whole new site?
Please discuss.
Thanks in advance.
I have been doing my site exclusivley in html. What is the big differences bewteen php and html? What are the advantages/disadvantages? What, if any would be the penalty from going from an html site to a php site? Would this hurt the PR I have already gotten as well as the search results? Woud it appear to be a whole new site?
Please discuss.
Thanks in advance.
The only change you will have if you move from html to php is a bit loss in search engine rankings. But a good Optimization can easily overcome that.
thnx,
thnx,
As MitkOK mentioned, PHP is a server-side language, which means the PHP code is executed on the server before sending it to the browser as client-side code. Server-side languages allow you to pull and display data from databases and create custom pages based upon requests from a user.
If you switch from HTML to PHP on an existing site you can redirect each page using a 301 redirect in the .htaccess file. That way, you will not lose any traffic. When the search engines see the 301 status code they should change the URL in their databases to reflect the new URL.
Using a 301 Permanent Redirect
Search engines treat pages with PHP extensions the same as HTML pages. But if you do not redirect the old URLs using a 301 redirect, the new pages will start all over in the search engine rankings. If you change a site to PHP, do not leave the old HTML pages in the site. You may get hit with a duplicate content penalty if you do that.
Hope that helps.
If you switch from HTML to PHP on an existing site you can redirect each page using a 301 redirect in the .htaccess file. That way, you will not lose any traffic. When the search engines see the 301 status code they should change the URL in their databases to reflect the new URL.
Using a 301 Permanent Redirect
Search engines treat pages with PHP extensions the same as HTML pages. But if you do not redirect the old URLs using a 301 redirect, the new pages will start all over in the search engine rankings. If you change a site to PHP, do not leave the old HTML pages in the site. You may get hit with a duplicate content penalty if you do that.
Hope that helps.
![]() |
Similar Threads
- Compile PHP (PHP)
- html vs. php (PHP)
- PHP vs ASP... the big ShOwdOwN (IT Professionals' Lounge)
- wht is HTML,PHP,CGI(Common Gateway Interface) (PHP)
- New to PHP (PHP)
- A Programmer's Introduction to PHP 4.0 (PHP)
Other Threads in the PHP Forum
- Previous Thread: How to generate a double random number by using PHP
- Next Thread: Wordpress Blog Help. Getting Error. Need Help Please.
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube





