Part of the EllisLab Network
   
 
How to Remove Index.php
Posted: 30 June 2007 07: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 $1 !^(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 08:12 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  886
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 03:19 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  917
Joined  07-10-2006

Try this .htaccess file:

Options +FollowSymLinks
Options
-Indexes
DirectoryIndex index
.php
RewriteEngine on
RewriteCond
$1 !^(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
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120464 Total Logged-in Users: 42
Total Topics: 126542 Total Anonymous Users: 2
Total Replies: 665377 Total Guests: 297
Total Posts: 791919    
Members ( View Memberlist )