httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Problem with htaccess (/year/month/day/)
Date Sat, 26 May 2007 19:14:54 GMT
On 5/25/07, thomas Armstrong <> wrote:
>  I'm trying to make my website works with
> to server
> With Apache 2.2, my .htaccess:
> ----------------------------
> RewriteEngine On
> RewriteRule ^([0-9]+)/([0-9]+)/([0-9]+)/(.*) /redirect.php [QSA,L]
> RewriteRule ^([0-9]+)/([0-9]+) /redirect.php [QSA,L]
> ----------------------------
> If I type:
> -, it works
> -, I get a 404 error message.
> What am I doing wrong?

Not using the RewriteLog to debug your mod_rewrite config.

Things go much easier in general if you put your mod_rewrite config in
httpd.conf rather than .htaccess. If you don't have access to
httpd.conf, then you should setup a test server on another machine to
debug your rewrite stuff.

(I don't see anything obviously wrong with your RewriteRules, but the
RewriteLog will tell you what is really going on.)


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message