NipIgniter User Guide Version 2.0


NipIgniter URLs

By default, URLs in CodeIgniter are designed to be search-engine and human friendly. Rather than using the standard "query string" approach to URLs that is synonymous with dynamic systems, CodeIgniter uses a segment-based approach:

example.com/some_news/my_article

On NipIgniter, we use hyphens (-) instead of underscores (_). Because Google recommend that you use hyphens (-) instead of underscores (_) in your URLs. So, it become like this :

example.com/some-news/my-article

Comparison

Where the difference?

CodeIgniter
Controller name Controller file name Action name URL
class Some_news extends CI_Controller controllers/some_news.php some_function example.com/some_news/some_function
NipIgniter
Controller name Controller file name Action name URL
class SomeNewsController extends Nip_Controller controllers/SomeNewsController.php someFunction example.com/some-news/some-function

The index.php has removed in the URLs

In NipIgniter, there is a .htaccess file to remove index.php in the CodeIgniter URL.

example.com/index.php/some-news/some-function example.com/some-news/some-function