![]() |
Tricky Problem with .htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Tricky Problem with .htaccess (/showthread.php?tid=37713) |
Tricky Problem with .htaccess - El Forum - 01-18-2011 [eluser]jpsmj214[/eluser] My .htaccess works fine in Xampp but not in Centos. Here are the result of the last line "RewriteRule ^(.*)$ index.php/$1 [R]" for your comparison and I didn't find any difference in the format. XAMPP: http://localhost/C:/xampp/htdocs/hrfct/index.php/main CENTOS: http://10.20.30.150/var/www/html/hrfct/index.php/main The error I have in Centos is 404 Page Not Found. Can somebody tell me why my .htaccess does not work in Centos? Thank You. Tricky Problem with .htaccess - El Forum - 01-18-2011 [eluser]Victor Michnowicz[/eluser] You may not have mod_rewrite installed. Try checking. Tricky Problem with .htaccess - El Forum - 01-18-2011 [eluser]jpsmj214[/eluser] Thanks elvicmic. I'm gonna try that. Tricky Problem with .htaccess - El Forum - 01-18-2011 [eluser]jpsmj214[/eluser] Sir I checked the httpd.conf of the Centos server and its loaded. I restarted the server just to double check and still the problem is the same. Tricky Problem with .htaccess - El Forum - 01-18-2011 [eluser]Victor Michnowicz[/eluser] .htaccess can be weird. According to the ExpressionEngine wiki, sometimes you need a "?" in there: Code: RewriteEngine On Tricky Problem with .htaccess - El Forum - 01-19-2011 [eluser]jpsmj214[/eluser] Thanks again Sir Elvicmic, momentarily I'm sticking with the "index.php". I'm gonna try your new .htaccess tomorrow. Thanks again Sir and more power, God Bless. |