CI & XAMPP... does not works without "index.php"

Hi guys!

I'm just approaching this fantastic framework. I think it will be perfect for my site (i'm building my own portfolio, i'm a photographer!)

But to test my project i need to have a running versione of CI on my XAMPP!

Now i'm trying to use the fantastic URL Rewriting solution provided by CI, but my xampp has some problems: all the user guide is unviewable (exept the index) because without the "index.php" all the system does not work!

I set up my virtual server as follows:
CI config.php:
$config['base_url'] = 'http://localhost/emigall/CI';
$config['index_page'] = '';

In the CI dir the .htaccess contents:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Modrewrite is loaded in the httpd.conf (decommentated string)
LoadModule rewrite_module modules/

dir's allow override set on "All"
<Directory />
    Options FollowSymLinks
    AllowOverride All
    #Order deny,allow
    #Deny from all

Where's the error???

First, try this .htacces:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /your-site-whatever/
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]


<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php

Then goto your config.php and empty the following array:

$config['index_page'] = '';

This should work i guess.

[quote author="alexwenzel" date="1349964072"]
This should work i guess.[/quote]

You're right! Smile

Now works perfectly! Thanks a lot, now i can start to study & develop my portfolio Smile

Thanks for feedback. You're welcome.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.