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

[eluser]ranggadablues[/eluser]
[quote author="CroNiX" date="1328731001"]Well, no, it's not obvious you tried. Many people come here and just ask questions without looking first, or reading the user guide.

Try this .htaccess, and place it at the same location as index.php:
Code:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

The next question is: How are you writing your urls, like in anchors? Manually or using some of the URL Helpers?

I have a feeling it is how you have the apache server set up though. Macs have most of the stuff disabled and you have to fudge with the apache conf.

Make sure your apache conf has these lines or you can't rewrite properly:
Quote:Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
[/quote]

thanks you save me
#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>





Theme © iAndrew 2016 - Forum software by © MyBB