urlrewriting htaccess not working properly |
03-03-2016, 12:20 PM
(This post was last modified: 03-04-2016, 01:06 PM by mfiaz. Edit Reason: Formatting Issue )
Hi,
Just follow my below steps. First Inside application/config/config.php find below line Step 1. PHP Code: $config['index_page'] = 'index.php'; replace it with this one PHP Code: $config['index_page'] = ''; Find below line PHP Code: $config['uri_protocol'] = 'AUTO'; Replace it with PHP Code: $config['uri_protocol'] = 'REQUEST_URI'; Step 2 Place below code in your .htaccess file Code: RewriteBase /your-project-directory-name/ if your project is inside sub directory then you need to minor change in .htaccess file rules that will be ” RewriteBase / ” to ” RewriteBase /subdir/ ” You can get full detail from below link on how to remove index.php from URL and write seo friendly URL's in Codeigniter. http://phpclicks.com/codeigniter-remove-...-from-url/ http://phpclicks.com/codeigniter-seo-friendly-urls/ |
Messages In This Thread |
urlrewriting htaccess not working properly - by thequem - 02-27-2016, 07:02 AM
RE: urlrewriting htaccess not working properly - by siburny - 02-29-2016, 08:00 PM
RE: urlrewriting htaccess not working properly - by mfiaz - 03-03-2016, 12:20 PM
|