For the second learn about codeigniter URLs is How to
removing the index.php. what is index.php? index.php is the main file to default
appear to your URL. The actually codeigniter URL is example.com/index.php/class/function/ID. Codeigniter php frameworks will be show you how to remove it. You
can easily remove it by using .htaccess file with some simple rules. Rules bellow
is example of such a file, using the negative method in which everything is
redirected except the specified items
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
I think enough for the part 1 of codeigniter URLs, we will
discuss another feature of codeigniter URLs in the next post of Codeigniter
php frameworks.
This post of Codeigniter
php frameworks: codeigniter URLs part 1 is references from http://codeigniter.com/user_guide/general/urls.html.
No comments:
Post a Comment