Category Archives: CodeIgniter

Both sement based and query string(GETmethod) variables in url of codeigniter site


codeigniter-segment-and-query-string-url

By default codeigniter doesn’t support query string or get method variables, we can use only segment based url. To enable both segment base and query string (GET method) variables, you need to follow the upcoming steps… 1 ) In yout codeigniter config file change the uri_protocol as specified bellow, application/config/config.php $config['uri_protocol']    = ‘AUTO’; to $config['uri_protocol']   [...]

Remove index.php from url of codeigniter site using htaccess


codeigniter-remove-index.php-htaccess

Usually when we run a CodeIgniter website, the url will have index.php after the hostname. To remove this we need to use mode_rewrite, htaccess. First just check your php info of your server whether you have loded mod_rewrite module. To check this create  ‘php-info.php’ file and put the following contents and run it. php-info.php <?php [...]