Tricky Problem with .htaccess |
[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.
[eluser]Victor Michnowicz[/eluser]
You may not have mod_rewrite installed. Try checking.
[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.
[eluser]Victor Michnowicz[/eluser]
.htaccess can be weird. According to the ExpressionEngine wiki, sometimes you need a "?" in there: Code: RewriteEngine On
[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. |
Welcome Guest, Not a member yet? Register Sign In |