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

[eluser]Unknown[/eluser]
I follow this structure.
/
applications/
frontend/
backend/
system/
.htaccess
index.php
admin/
index.php

Now i want to remove index.php from the url.

I can access this urls :
http://localhost/ci1/
http://localhost/ci1/index.php/welcome

but not able to access this url:
http://localhost/ci1/welcome

I have used this .htaccess to get read of index.php without any success,
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

I have my rewrite mode on, checked in httpd.conf file.

Any help would be appreciated.
#2

[eluser]CodeIgniteMe[/eluser]
Try a simpler htaccess.
Try the htaccess directives from the userguide
http://ellislab.com/codeigniter/user-gui.../urls.html
#3

[eluser]Unknown[/eluser]
Thanks,

My problem is solved.
#4

[eluser]boltsabre[/eluser]
No worries champ;-)
Update, sorry i postrd on the wrong post
#5

[eluser]CodeIgniteMe[/eluser]
No problem




Theme © iAndrew 2016 - Forum software by © MyBB