I'm trying this very simple URL rewriting rule I copied somewhere:
RewriteEngine on
RewriteLog /tmp/server.log
RewriteRule /detalles/([0-9]+) /detalles.php?id=$1
According to manual, I can set both directives in .htaccess files. This is
what my virtual host looks like:
<VirtualHost *:80>
ServerName server
DocumentRoot /home/server/htdocs
CustomLog logs/server-access_log combined
ErrorLog logs/server-error_log
<Directory />
AllowOverride All
</Directory>
</VirtualHost>
Whatever the reason, it only works if I place the rewrite directives in
main config file: those in .htaccess are ignored (i.e., error 404). I've
used RewriteLog in virtual host config but the log file keeps empty. Apache
logs don't show any other message apart from the error 404.
Any clue would be welcome,
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed
--