Page 1 of 1

mod_rewriting and 404

Posted: Wed Mar 23, 2005 1:12 pm
by ollerich
Hello everybody, hello garvin ;-),

I'm testing s9y with the actual beta on a debian sarge system.
When I switch in the configuration menu the URL rewriting from no rewriting to Apache mod_rewrite, and I select any internal link in s9y the following error occurs:

Code: Select all

The requested URL /serendipity/archives/XXX.html was not found on this server.
where XXX is the filename. When I switch back to disable url-rewriting, everything works fine again.

Any hint?

Thanks in advance,

Oliver

PS:
the httpd.conf for s9y looks like this:

Code: Select all


Alias /serendipity /var/www/serendipity
<Location /serendipity>
 Order deny,allow
 Allow from all
 AllowOverride All
</Location>


<VirtualHost 192.168.2.101:80>
  DocumentRoot /var/www/serendipity
  ServerName xxx.XXX.XX
</VirtualHost>
[/code]

Re: mod_rewriting and 404

Posted: Wed Mar 23, 2005 4:04 pm
by garvinhicking
If you enable mod_rewrite rewriting, you need to make sure your Apache supports mod_rewrite. As it seems, it doesn't. :-)

Try the "Apache Errorhandling", that should work in your case.

Regards,
Garvin