Posts Tagged ‘seo’

Redirect www to non-www in CodeIgniter applications

Posted in Articles on July 28th, 2011 by admin – Be the first to comment

There are many reasons why you should take care of your URL patterns and domain name rules in your applications. One of these reasons is about SEO, Search Engine Optimization.

In CodeIgniter applications we can easily use htaccess rules to prepare our applications in CodeIgniter for SEO. One of these changes involve to redirect all the traffic coming to www to non-www domain, or viceversa.

You can remove www from URL easily by changing your htaccess file and adding some basic rules. Also, there is a SEO Redirect tool that you can use to verify the redirect is SEO friendly.

Related searches:

  • codeigniter redirect
  • codeigniter redirect www
  • redirect to www in codeigniter
  • codeigniter domain redirect
  • redirect in Codeigniter
  • redirect with codeigniter
  • redirect to www in javascript
  • redirect www on codeigniter
  • url redirect codeigniter www
  • redirect from www to non-www codeigniter

CodeIgniter and SEO

Posted in Snippets Ideas on August 12th, 2009 by admin – Be the first to comment

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

Related searches:

  • codeigniter seo
  • seo codeigniter
  • codeigniter seo friendly url
  • codeigniter d
  • code igniter SEO
  • codeigniter search engine optimization
  • codeigniter search engine
  • codeigniter url title
  • codeigniter seo title
  • search engine optimization codeigniter