Welcome Guest, Not a member yet? Register   Sign In
Problem with removing Index.php from URL
#5

(This post was last modified: 06-17-2016, 12:55 PM by behrooz1x. Edit Reason: complete )

You needs three steps:

1-Create htaccess file in the root ci folder(i attach my .htaccess).
2-Change the 'RewriteBase /' in httaccess, for exmaple if your site in url is 'http://localhost/ci/index.php/welcome' you need change that to 'RewriteBase /ci/'.
3-remove 'index.php' from 'application/config/config.php':
//this
$config['index_page'] = 'index.php';
///to
$config['index_page'] = '';

Attached Files
.txt   htaccess.txt (Size: 1.02 KB / Downloads: 93)
Reply


Messages In This Thread
RE: Problem with removing Index.php from URL - by behrooz1x - 06-17-2016, 12:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB