htaccess redirect problem with 404 Page Not Found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: htaccess redirect problem with 404 Page Not Found (/showthread.php?tid=54319) |
htaccess redirect problem with 404 Page Not Found - El Forum - 09-03-2012 [eluser]icebergdelphi[/eluser] Hi all, I have some problem with my new proyect using CI ver 2.1.2, I want to use a clear Url access with no index.php/.... OS:WindowsXP xampp-win32-1.7.7-VC9 Problem: The problem is when i click in my Login project page, the browser rise:,checkloging 404 not found checklogin is a controller to check if the user validations,but the .htacess not redirect to my checklogin file. But if i do the next: http:localhost/Vilab/index.php/checklogin everything works fine. NOTE: I've been finished, another project with the same config, and i have not problem. The next configs, i've used in another project, and this runs with no problem: I have configured all this things: 1.-I created a .htaccess file inside my root folder proyect:C:/xammp/htdocs/ViLab Note:ViLab is the Name of my CI Folder, i've renamed to ViLab Code: <IfModule mod_rewrite.c> 2.- I overwrite the next line in config folder: Code: $config['index_page'] = ''; 3.- In Apache httpd.conf, i have:LoadModule rewrite_module modules/mod_rewrite.so Code: #LoadModule proxy_http_module modules/mod_proxy_http.so 4.-My route.php config: Code: $route['default_controller'] = "login"; The Problem: I just run my web app and this shows me my login page, 'til here everythings is ok, this is my login page code: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); and my Login_view code, with a <?php echo form_open('checklogin'); ?> to call my controller: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> So what is the problem, in my other project works so fine , but in my new project, rise error 404. Thanks to all, i hope you can help me. htaccess redirect problem with 404 Page Not Found - El Forum - 09-03-2012 [eluser]icebergdelphi[/eluser] I just reinstall Xammp and all works perfectly, thanks to all. |