Welcome Guest, Not a member yet? Register   Sign In
removing index.php from url and load model eror
#6

[eluser]InsiteFX[/eluser]
application/config/config.php
Code:
$config['index_page'] = "";

Try this .htaccess file:
Code:
<IfModule mod_rewrite.c>

    <ifModule mod_php5.c>
        php_value default_charset utf-8
    </ifModule>

    Options +FollowSymLinks

    RewriteEngine On
    RewriteBase /

    #Removes access to the system folder by users.
    #Additionally this will allow you to create a System.php controller,
    #previously this would not have been possible.
    #'system' can be replaced if you have renamed your system folder.
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]

    #When your application folder isn't in the system folder
    #This snippet prevents user access to the application folder
    #Submitted by: Fabdrol
    #Rename 'application' to your applications folder name.
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]

    RewriteCond $1 !^(index\.php|assets|css|js|scripts|icons|images|img|media|xml|user_guide|robots\.txt|favicon\.ico)
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    <IfModule mod_php5.c>
        RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    </IfModule>

    <IfModule !mod_php5.c>
        RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
    </IfModule>

</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    # Submitted by: ElliotHaughin

    ErrorDocument 404 /index.php
</IfModule>

InsiteFX


Messages In This Thread
removing index.php from url and load model eror - by El Forum - 07-02-2011, 03:29 AM
removing index.php from url and load model eror - by El Forum - 07-02-2011, 05:56 AM
removing index.php from url and load model eror - by El Forum - 07-02-2011, 06:36 AM
removing index.php from url and load model eror - by El Forum - 07-02-2011, 07:47 AM
removing index.php from url and load model eror - by El Forum - 07-10-2011, 09:17 AM
removing index.php from url and load model eror - by El Forum - 07-10-2011, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB