Problem with htaccess (/year/month/day/)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to make my website works with http://www.domain.com/2007/05/25/foo
to server http://www.domain.com/redirect.php

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:
- http://www.mydomain.com/2007/05, it works
- http://www.mydomain.com/2007/05/25/foo, I get a 404 error message.

What am I doing wrong?

Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux