You are not logged in.
Pages: 1
i've got a problem with mod_rewrite - it doesn't work.
(~)$ cat /etc/httpd/conf/httpd.conf| grep mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so
(~)$ cat /home/httpd/html/.htaccess
Options FollowSymLinks
RewriteEngine On
RewriteRule ^index.html$ index.php [L]http://localhost/index.php works fine but http://localhost/index.html gives 404 error ![]()
could someone know, where the fsck is problem?
btw sorry for my english if i made some mistakes. i'm from poland ![]()
Offline
Does index.html have the correct or same permisions as index.php ?
Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)
Offline
Do you have allowoverrides set for that directory in apache?
If not, then your .htaccess might not be able to enable rewriting.
ಠ_ಠ
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos." -- Cactus' Law
Offline
thanks. it was allowoverride's fault.
and btw i've got another problem. apache don't parse php files when them are in different directory than "/home/httpd/html", e.g. if i set DocumentRoot (and <Directory "..."> too, of course) to "/mnt/data/htdocs". why?
Last edited by dawidgarus (2007-12-30 16:40:18)
Offline
hard to say..
check the apache error log and see if there is anything in it of relevance, and maybe check permissions on that directory...make sure that the user apache runs under can enter the directory...
ಠ_ಠ
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos." -- Cactus' Law
Offline
You could try to add
php_admin_value open_basedir "/path/to/Directory:/usr/lib/php:/tmp"to proper <Directory> ... </Directory> section of your configuration file.
Offline
Pages: 1