Welcome Guest, Not a member yet? Register   Sign In
[SOLVED]newbie problem with xampp and .htaccess
#1

[eluser]mandril[/eluser]
Hi there,

I search the forum before posting this, and I found there are lot's of people with the same problem.

My problem is with xampp in windows vista. Ok I have xampp with apache and mysql running and reading this forum I get a .htaccess configuration setting which partially works.

My .htaccess file

Code:
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]

well i have my codeigniter installed in c:\xampplite\htdocs\msr\

so i have to access by this URL: http://localhost/msr/index.php and it works! i have my application running. And if I type http://localhost/msr/ it ALSO WORKS!

but the problem is with my controllers, i have a controller called: usuario.php and a view for that controller and everything works.

BUT.. it works if I access with: http://localhost/msr/index.php/usuario
NOT with this URL: http://localhost/msr/usuario as it should work. it redirects me to the xampp starting webpage localhost root.

In my config.php file:

Code:
$config['base_url']    = "http://localhost/msr/";

and:

Code:
$config['index_page'] = "";

when i use anchor('usuario','link') function it creates a link to http://localhost/msr/usuario and is not working.

Help please!!! I tried a lot of .htaccess file configuration from this forum. Im using the latest CI version.
#2

[eluser]mandril[/eluser]
wow! the solution is here:

http://ellislab.com/forums/viewthread/87121/

stupid me.. i have to add "?" in the index.php to make it work like it explains there, because of apache2 ^^.

I have another problem.. but i will try it to solve by myself for 1 or 2 hours, if not i will post it.

Sorry for wasting your time =(




Theme © iAndrew 2016 - Forum software by © MyBB