From ff845f94cc8876bc6c23c2f55b695bc569038512 Mon Sep 17 00:00:00 2001
From: Derek Jones 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: Note: Query string URLs can be optionally enabled, as described below.www.your-site.com/news/article/my_article
+example.com/news/article/my_article
www.your-site.com/class/function/ID
+example.com/class/function/ID
By default, the index.php file will be included in your URLs:
-www.your-site.com/index.php/news/article/my_article
+example.com/index.php/news/article/my_article
You can easily remove this file by using a .htaccess file with some simple rules. Here is an example of such a file, using the "negative" method in which everything is redirected except the specified items:
@@ -105,11 +105,11 @@ a request for your index.php file.In your config/config.php file you can specify a suffix that will be added to all URLs generated by CodeIgniter. For example, if a URL is this:
-www.your-site.com/index.php/products/view/shoes
+example.com/index.php/products/view/shoes
You can optionally add a suffix, like .html, making the page appear to be of a certain type:
-www.your-site.com/index.php/products/view/shoes.html
+example.com/index.php/products/view/shoes.html