Search Engine Optimization (SEO) is the practice of optimizing websites so that their pages appear in high positions in search engines like Google for important keywords (like “women’s swimwear”).
PHP (Hypertext Preprocessor – this is a made up name… it originally was just initials) is the default programming language of the web. It is the P in LAMP stack. If you see dynamic websites (social networks, dating sites, workout trackers, etc.) there is a good chance it is built in PHP.
So what do you PHP & SEO have in common?
Actually a lot. Most of the best search engine optimized platforms like WordPress, Magento, Drupal and others are built in PHP. Tons of free open source software is built in PHP.
Below are my favorite practical applications for PHP:
- Dynamic HTML & XML sitemaps. You can programmatically build a webpage using PHP that keeps itself constantly up to date with all the most recent content additions.
- Automatic Redirects. Remembering to setup 301 redirects after each time you delete or change a webpages URL is difficult to remember. You can set up your PHP code to automatically add to your 301 redirects when necessary.
- Pretty URLs. This is more of a warning than an application: it is easy to set up PHP so it passes information in URLs, creating ugly URLs like http://www.example.com/index.php?t=125189200. We prefer URLs such as http://www.example.com/bill-and-ted-excellent-adventure.
What are some practical applications you have found for PHP in an SEO context?