Welcome Guest, Not a member yet? Register   Sign In
Remove index.php
#1

[eluser]Unknown[/eluser]
hey to all

my files is like below :
Code:
- root
    -CI
       -application
       -system

    -www
        -index.php
        -.htaccess



and my htaccess is :
Code:
RewriteCond $1 !^(index\.php|images|css|robots\.txt)

RewriteRule ^(.*)$ /index.php?/$1 [L]
my config :
Code:
$config['base_url']    = "http://mydomain.com/";
$config['index_page'] = '';
$config['uri_protocol']    = 'AUTO';


but unfortunately if I delete index.php from url it doesn't work!
it works on my other servers but in actual server does't work!
#2

[eluser]toopay[/eluser]
Do a search. There are a lot similar thread here.
#3

[eluser]EdgeTube[/eluser]
Try

Code:
RewriteCond $1 !^(index\.php|images|img|css|js|robots\.txt)

RewriteRule (.*) index.php?/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB