Welcome Guest, Not a member yet? Register   Sign In
Tricky Problem with .htaccess
#1

[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.
#2

[eluser]Victor Michnowicz[/eluser]
You may not have mod_rewrite installed. Try checking.
#3

[eluser]jpsmj214[/eluser]
Thanks elvicmic. I'm gonna try that.
#4

[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.
#5

[eluser]Victor Michnowicz[/eluser]
.htaccess can be weird. According to the ExpressionEngine wiki, sometimes you need a "?" in there:

Code:
RewriteEngine On
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
#6

[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.




Theme © iAndrew 2016 - Forum software by © MyBB