jigniter™

jQuery & CodeIgniter – Perfect combination for web application

Archive for the ‘seo’ tag

CodeIgniter and SEO

without comments

One of the powerful features of CodeIgniter is its great support for SEO purposes.

Titles, friendly URL are just an example of what you can do with CodeIgniter.

I’d recommend this excellent article from SEO Coding, explaining some CodeIgniter tips for SEO.

In addition, if you are optimizing your application for search engines, then you may be interested in removing index.php from the default installation of CodeIgniter application. You can do that by reading this article.

You also may be interested in reading this forum thread, explaining that controllers do not support dashes, so take that in mind when writing your own controllers in CodeIgniter. However, you can use custom Routes for routing URL friendly controller names to your existing controllers.

At URL Helper, you may find a great helper function for preparing titles for URLs, that’s good to optimize your titles for Search Engine Optimization.


$title = "My SEO title";
$url_title = url_title($title);

will produce this: My-SEO-title


$title = "My SEO title";
$url_title = url_title($title, 'underscore', TRUE);

will produce a different title using underscore and lowercase, like this: my_seo_title

Written byadmin

August 12th, 2009 at 2:48 pm

Posted inSnippets Ideas

Tagged with ,