Doubt about RewriteRule: it won"t mask, but redirect
am 08.09.2005 20:36:26 von francescomoiHi.
With Apache/2.0.52 on my server, I want to convert
http://www.mydomain.com/index.php/2005/09/08/foo
into
http://www.mydomain.com/2005/09/08/foo
with RewriteRule
I modified my 'httpd.conf':
-----------
ServerAdmin john@mydomain.com
DocumentRoot "/home/mydomain/web"
ServerName www.mydomain.com
ErrorLog logs/mydomain-error_log
CustomLog logs/mydomain-access_log "%h %l %u %t \"%r\" %>s %b
\"%{Referer}i\" \"%{User-agent}i\""
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^/([0-9]+)/([0-9]+)/([0-9]+)/(.*)
http://www.mydomain.com/index.php/$1/$2/$3/$4 [QSA,L]
Options Indexes +FollowSymLinks
-------
(/home/mydomain/web/index.php is a soft link to /home/foo/index.php)
But when trying to access to:
http://www.mydomain.com/2005/09/08/foo
it redirects to:
http://www.mydomain.com/index.php/2005/09/08/foo
and doesn't mask it, as I supposed. I mean, I can see this URL on my
browser.
Whay am I doing wrong? Thank you very much.