Nov 08
Digg
Stumbleupon
Technorati
Delicious

About SEO in symfony projects

At some point you should start worring about your symfony project SEO characteristics.
We expect that you are familiar with the main SEO rules / ideas therefore only going to provide some specific solutions.

So first of all you may be interested in existing symfony plugin simpleSeoPlugin

http://www.symfony-project.org/plugins/simpleSeoPlugin

It allows to add keywords and description from content and provides simple SEO panel. The most probably you may want to tie this plugin with your symfony CMS. This or that way you should be aware about original symfony’s include_metas function. It includes META tags but instead of title tag it uses <META name=”title” which is actually not correct.

theseomantra.com blog writes

From SEO perspective, this META tag might be dangerous, and is certainly useless…Google might think of your site as it’s repeating keywords too much…though I am not sure about this…may be I’ll post an update on this based on my experience…

So we reffer you to these 2 solutions regard this problem:

http://theseomantra.com/2008/07/20/removing-meta-nametitle-tag-in-symfony-for-seo/

http://jlcoady.net/symfony/remove-meta-name-title-symfony-pages

One more note is about generating clean SEO-friendly urls. They say it’s better to use *.html urls vs other ones. Therefore you may want to add to your routing.yml (or if you do it dynamically into config.php file) some modifications so it looks like:

show_article:
url: /article/:stripped_title.html
param: {module: home, action: article}

You may read more about this approach here:

http://blog.rajatpandit.com/2008/06/18/creating-clean-seo-urls-in-symfony/

And finally we want to recommend you well know seo cheat-sheet which is available here:

http://www.seomoz.org/blog/the-web-developers-seo-cheat-sheet

it contains the most important rules which you should follow to make your site more friendly for search engines.

Happy SEO!


Author: symfonian

3 Comments

Pawe? Ryznar
November 9, 2008

Thank you for tip 🙂
I don’t pay any attention that symfony don’t generate

[…] About SEO in symfony projects […]

Joshua Coady
February 2, 2009

I’ve posted updated instructions compatible with Symfony 1.2 at http://jlcoady.net/symfony/how-to-remove-the-meta-nametitle-element-from-symfony-12-pages because my prior solution was only compatible with Symfony 1.0

Comments RSS TrackBack Identifier URI

Leave a comment