Part of the EllisLab Network
   
 
mod_rewrite and index.php Problem results in a blank page CI_log: ERROR—> 404 Page Not Found—>
Posted: 10 February 2007 06:25 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  38
Joined  02-09-2007

Hello,

I have a strange Problem.

System: XAMPP local Win XP PHP 4.4.1

I followed the instructions of the mod_rewrite wiki.  http://www.codeigniter.com/wiki/mod_rewrite/

And it seemed to work.

The Problem is - that CI first produces the expected page.
But when I reload it, it shows just a blank page. (No error! - Apache access.log says 200 OK)


The CI-log shows:

DEBUG - 2007-02-10 23:02:51—> Final output sent to browser
DEBUG - 2007-02-10 23:02:51—> Total execution time: 0.0705
DEBUG - 2007-02-10 23:02:52—> Config Class Initialized
DEBUG - 2007-02-10 23:02:52—> Hooks Class Initialized
ERROR - 2007-02-10 23:02:52—> 404 Page Not Found—>

It has to do with the .htaccess file:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /path/to/index/php/  # path to the folder containing the index.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>

<IfModule !mod_rewrite.c>
  # If we don’t have mod_rewrite installed, all 404’s
  # can be sent to index.php, and everything works as normal.
  # Submitted by: ElliotHaughin

  ErrorDocument 404 /index.php
</IfModule>

I appreciate every hint

Thanks in advance

uprocka

Profile
 
 
Posted: 12 February 2007 03:02 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  362
Joined  10-02-2006

I have the exact same problem. Tried every .htaccess variation I could find in the forum/wiki, and think of, with the same result (as above). Did you find a solution?

 Signature 

CI version?
From SVN.

Profile
 
 
Posted: 01 May 2007 10:32 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  10
Joined  02-06-2007

Sorry. SOLVED.

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 719, on June 06, 2008 10:16 AM
Total Registered Members: 66417 Total Logged-in Users: 48
Total Topics: 84764 Total Anonymous Users: 0
Total Replies: 454893 Total Guests: 249
Total Posts: 539657    
Members ( View Memberlist )