Welcome Guest, Not a member yet? Register   Sign In
[solved] removing index.php
#1

[eluser]Unknown[/eluser]
I have some problems with removing 'index.php' in URL.
http://kadma.lt/ci/index.php/login -> works
http://kadma.lt/ci/login -> doesn't work

I have read a user guide.

my .htaccess
Code:
RewriteEngine on
RewriteBase /ci
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

mod_rewrite module is enabled in apache...

Any suggestions?

Thanks
#2

[eluser]danmontgomery[/eluser]
Is your .htaccess in / or /ci?
#3

[eluser]JoostV[/eluser]
Have you tried this?
Code:
RewriteRule ^(.*)$ /ci/index.php/$1 [L]

RewriteRule ^(.*)$ /index.php/$1 [L] rewrites to http://kadma.lt/index.php
#4

[eluser]Unknown[/eluser]
thank you for replies Wink
RewriteRule ^(.*)$ /ci/index.php/$1 [L] -> this one helped Wink




Theme © iAndrew 2016 - Forum software by © MyBB