Part of the EllisLab Network
   
 
How to Remove Index.php
Posted: 30 June 2007 08:52 AM   [ Ignore ]  
Summer Student
Total Posts:  4
Joined  06-27-2007

Hiii

I now only entered to code igniter. one problem that is

Now i stored my .htaccess file in codeigniter folder…

How to Remove index.php from my url. If you Knows help me….

I have used this code on .htaccess file in my codeigniter folder.

RewriteEngine on
RewriteBase 
/
RewriteCond $!^(index\.php|robots\.txt|css|images|jscript)
RewriteRule ^(.*)$ /index.php/$1 [L] 

I am using local Xampp server.

I got one error message from my Browser

Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

Profile
 
 
Posted: 30 June 2007 09:12 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  33
Joined  03-06-2006

Try mod rewrite in the Wiki.

 Signature 

Corozal, Belize | Linux.bz | Using Kubuntu Linux 7.10 | CodeIgniter 1.5.3

Profile
 
 
Posted: 30 June 2007 04:19 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  530
Joined  07-10-2006

Try this .htaccess file:

Options +FollowSymLinks
Options 
-Indexes
DirectoryIndex index
.php
RewriteEngine on
RewriteCond 
$!^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)$ index.php/$1 [L,QSA] 

Open your apache httpd.conf file and make sure the following line is uncommented:

LoadModule rewrite_module modules/mod_rewrite.so 
Profile