Welcome Guest, Not a member yet? Register   Sign In
Can't remove index.php from URL
#12

[eluser]InsiteFX[/eluser]
I wish you people would quit using these because CI now protects these directories!
Code:
#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]
    
    #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]

You no longer need these! See the .htaccess files in those directories.

Also I do not know about the Mac, but on my windows 7 pro 64-bit I map localhost to 127.0.0.1 in my hosts file.

Also on windows this will not work <IfModule mod_rewrite.c> it has to be like this
<IfModule mod_rewrite.so>



Messages In This Thread
Can't remove index.php from URL - by El Forum - 02-08-2012, 04:31 AM
Can't remove index.php from URL - by El Forum - 02-08-2012, 10:50 AM
Can't remove index.php from URL - by El Forum - 02-08-2012, 12:37 PM
Can't remove index.php from URL - by El Forum - 02-08-2012, 12:56 PM
Can't remove index.php from URL - by El Forum - 02-08-2012, 05:43 PM
Can't remove index.php from URL - by El Forum - 02-09-2012, 03:03 AM
Can't remove index.php from URL - by El Forum - 02-09-2012, 07:07 AM
Can't remove index.php from URL - by El Forum - 02-09-2012, 07:56 AM
Can't remove index.php from URL - by El Forum - 02-12-2012, 09:36 AM
Can't remove index.php from URL - by El Forum - 02-12-2012, 10:21 PM
Can't remove index.php from URL - by El Forum - 04-02-2012, 06:41 AM
Can't remove index.php from URL - by El Forum - 04-02-2012, 05:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB