|
|
 |
Re: FN-FORUM: Apache log file - mod rewrites.....
date posted 14th January 2004 11:32
Tim,
Thanks for the thoughts, the rewrite is actually done in a local
.htaccess
-------------------------
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^([a-z]{2})/(.*)$ $2?language=3D$1&%{QUERY_STRING}
RewriteRule ^manufacturer([0-9{}]+_?[0-9{}]*)(/?.*)$=
$2?manufacturers_id=3D$1&%{QUERY_STRING}
RewriteRule ^product([0-9{}]+_?[0-9{}]*)(/?.*)$=
$2?products_id=3D$1&%{QUERY_STRING}
RewriteRule ^category([_0-9]+)/(.*)$ $2?cPath=3D$1&%{QUERY_STRING}
RewriteRule ^(.*)\.html(.*)$ $1.php?%{QUERY_STRING}
----------------------------
and some URL manipulation is done with PHP on the site pages..
What is confusing me is how it can log "correctly" but not within=
the correct site file which is defined in the vhost httpd.conf..
Some hits are logged but none that are subjected to rewrites !
Any thoughts ?
On 14 Jan 2004 11:32:04 -0000, Tim Pizey wrote:
>
>Ken,
>
>Can you show us the extract from httpd.conf where mod_rewite is
>included?
>
>For a virtual host it should be something like:
>
>
>ServerName ftc365
>
>RewriteEngine on
>RewriteCond =A0%{REMOTE_ADDR} =A0!^(62.254.128)
>RewriteRule ^/ =A0 =A0 =A0 /closed.html [L]
>
>
>
>or
>
>
>ServerName rbr
>
>Include /paneris/rbr/etc/rewrites.apache
>
>
>
>if you are using the latter then can you also include the=
rewrite
>rules.
>
>I think it is possible to call rewrite rules prior to
>virtual host specific rules.
>
>hope this helps
>Tim Pizey
>
>
|
 |
|