Welcome Guest, Not a member yet? Register   Sign In
removing index.php from url
#2

(This post was last modified: 09-21-2015, 10:22 AM by PaulD. Edit Reason: Adding PS for clarification )

Have you changed the config file?

Quote:/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';  <-- need to remove this

Also, depending on the software you are using, local host may need some additional formatting. For instance, with XAMMP you need to change the httpd.conf file in the configuration of the apache server to allow overrides.

Quote:# AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All   <--- change this from "None" to "All"

Hope that helps,

Best wishes,

Paul.

PS As it says in the docs your particular .htaccess rules many need to be configured for your particular environment too. That is just a sample .htaccess file. http://www.codeigniter.com/user_guide/ge...x-php-file
Reply


Messages In This Thread
removing index.php from url - by gloosemore - 09-21-2015, 09:09 AM
RE: removing index.php from url - by PaulD - 09-21-2015, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB