.php vs. .html

Please support our Search Engine Optimization advertiser: Get a Free SEO Analysis!
Reply

Join Date: May 2004
Posts: 446
Reputation: ep2002 is an unknown quantity at this point 
Solved Threads: 0
ep2002's Avatar
ep2002 ep2002 is offline Offline
Posting Pro in Training

.php vs. .html

 
0
  #1
Mar 11th, 2005
Hi All,

Someone just told me that if you name your pages .php, it hinders your rankings.

Is that true?

Thanks


Michelle
Review all of our open job positions

**Parents having problems with your kids? Come tell us your story

Are you a writer or editor? Join us...
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 355
Reputation: DanceInstructor is an unknown quantity at this point 
Solved Threads: 14
DanceInstructor's Avatar
DanceInstructor DanceInstructor is offline Offline
Posting Whiz

Re: .php vs. .html

 
0
  #2
Mar 11th, 2005
Yes but you can use mod_rewrite to trick the search engines. You can find a guide here. It sorta makes my head spin tho :mrgreen: I have problems with regular expressions. Certain pages on this site use mod_rewrite, even tho they are .php and generated dynamically they will show up as .html in the address bar of your browser.
Clear Mind Hosting and Web Design

If I've helped you please consider adding to my reputation.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 157
Reputation: pulse is an unknown quantity at this point 
Solved Threads: 0
pulse's Avatar
pulse pulse is offline Offline
Posting Whiz in Training

Re: .php vs. .html

 
0
  #3
Mar 11th, 2005
If only your .php contains session ids then only you have a problem otherwise they get indexed just fine!
StreetLessons.com - My Blog about Business, Life & Success!
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 54
Reputation: RamiroS is an unknown quantity at this point 
Solved Threads: 2
RamiroS's Avatar
RamiroS RamiroS is offline Offline
Junior Poster in Training

Re: .php vs. .html

 
0
  #4
Mar 11th, 2005
First of all thats not true, it depends on how you use php.

As pulse added the problem is related to the fact that PHP uses in some cases session ids in the url and since session changes from user to user the URL looks different at the "eyes" of a search engine. PHP pages are dynamic so you will find in most cases question marks in the url... for example http://www.mydomain.com/showuserinfo.php?userid=222

Google doesnt seem to pay lots of attention to this since it means dynamic conent, maybe automatic information and marks that as not so relevant information. Poeple use dynamic page sto fool search engines and Google pays attention to that also.

I don't know how much relevan or not relevant a dynamic page url (with query string) is for Google.

however if your site has good content and good links pointing to you you, good navigation you should not have problems with clean url .php pages

a php extension by itself will not hurt you... but yes, try to use clean urls. Use search engine friendly urls and try to avoid query strings as much as you can.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 252
Reputation: jewboy is an unknown quantity at this point 
Solved Threads: 1
jewboy jewboy is offline Offline
Posting Whiz in Training

Re: .php vs. .html

 
0
  #5
Mar 11th, 2005
Dani says: PHP sites are better. They are as indexable by the engines, as long as there are no query strings. PHP sites are more interactive and provide far more flexibility than HTML. They present a more professional image, by showing that your are up to date with the current technology. HTML is rather old school.

Avi Wilensky
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 157
Reputation: pulse is an unknown quantity at this point 
Solved Threads: 0
pulse's Avatar
pulse pulse is offline Offline
Posting Whiz in Training

Re: .php vs. .html

 
0
  #6
Mar 11th, 2005
Originally Posted by promediacorp
HTML is rather old school.
I would respectfully disagree! What if the company doesn't need it for the most of its site? Like I am working on a corporate site for a client and except for a section to manage Press Releases, the whole site would be static! :p

Well, Why would I unnecessarily put .php on the static pages? For most of the non-tech people, as most of our visitors there would be, extensions don't make any sense! They don't know what .php is and leave aside a more professional image, by showing that we are up to date with the current technology.

Also, you can't tell by looking on the urls of the pages, if that page has been statically generated or by a site. For example this page that you are seeing right now has a .html extension, but it was generated by vBulletin... that's php hidden by mod_rewrite!
StreetLessons.com - My Blog about Business, Life & Success!
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 9
Reputation: alwaysonline is an unknown quantity at this point 
Solved Threads: 0
alwaysonline alwaysonline is offline Offline
Newbie Poster

Re: .php vs. .html

 
0
  #7
May 5th, 2007
Our website is designed using PHP and the site seems to be indexed
However, we have a dynamically generated link called Tell-a freind, which is from the page the visitor is in and does not get indexed becasue it has charecters such as ? in the URl and is not stored on the server
Last edited by cscgal; May 5th, 2007 at 6:17 am. Reason: Plug snipped
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Solved Threads: 35
Moderator
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: .php vs. .html

 
0
  #8
May 5th, 2007
URLs with query strings get indexed just fine.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 10221 | Replies: 7
Thread Tools Search this Thread



Tag cloud for Search Engine Optimization
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC