Discuss PHP and SEO in the Search Engine Optimization forum on Dev Shed. PHP and SEO Search Engine Optimization forum discussing related topics such as Google, PageRank, Link Exchange, and Link Popularity. Improve your ranking in the Search Engines by employing good optimization techniques.
Posts: 677
Time spent in forums: 5 Days 3 h 27 sec
Reputation Power: 54
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?
Posts: 14,732
Time spent in forums: 1 Month 1 Week 3 Days 14 h 52 m 36 sec
Reputation Power: 977
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.
__________________
# Jeremy
Explain your problem instead of asking how to do what you decided was the solution.
How to Present Effectively Online This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.
Open Source Security Myths Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual
property restrictions (or arrangement such as the public domain), and is
usually developed with the input of many contributors.
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.
Understanding Web Application Security Challenges This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.