SunQuest
           Search Engine Optimization
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignSearch Engine Optimization

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 17th, 2006, 03:37 AM
davidb2002's Avatar
davidb2002 davidb2002 is offline
Almighty God of Nothing
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2005
Location: Rotherham, UK
Posts: 554 davidb2002 User rank is Private First Class (20 - 50 Reputation Level)davidb2002 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 11 h 36 m 13 sec
Reputation Power: 4
Send a message via ICQ to davidb2002
Cool PHP and SEO

I do the majority of my coding with PHP/MySQL and was wondering how this effects SEO. Many of my pages will display information dynamically from a database. Do the bots see the PHP, or the HTML that it outputs?

Also, like any other lazy PHP coder, I tend to use variables in my URL to decrease coding time. For intance, if I have an article.php file which displays an article based on the var aid, will each article be indexed? If I link to these articles on a static page will they be indexed? What other things should I consider when coding in PHP for SEO?
__________________
Supadupa Web Design - Tutorials for the Serious Web Developer

Reply With Quote
  #2  
Old January 17th, 2006, 04:58 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,266 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 23 h 15 m 4 sec
Reputation Power: 744
Quote:
Do the bots see the PHP, or the HTML that it outputs?
What does your browser see? A bot is a browser.
Quote:
For intance, if I have an article.php file which displays an article based on the var aid, will each article be indexed?
Different engines do different things and different people will tell you different things (b/c they were told by somebody else). Some say Google will support up to one query string variable (eg, ?aid=4, but not ?aid=4&foo=bar), but that it shouldn't be ?id=

It is best to hide your query strings, which can be accomplished on an Apache server with mod_rewrite or the ForceType directive.
Comments on this post
andymoo agrees: mod_rewrite is internet voodoo magick and pays great returns on the time invested in it.
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old January 19th, 2006, 01:26 PM
rehash rehash is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 164 rehash User rank is Sergeant (500 - 2000 Reputation Level)rehash User rank is Sergeant (500 - 2000 Reputation Level)rehash User rank is Sergeant (500 - 2000 Reputation Level)rehash User rank is Sergeant (500 - 2000 Reputation Level)rehash User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 25 m 35 sec
Reputation Power: 8
if you have some important BLs you will get indexed even if your site is dynamic, however, like davidb2002 said, you should use mod_rewrite

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignSearch Engine Optimization > PHP and SEO


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway