On 9/5/05, Marcin 'Rambo' Roguski <[EMAIL PROTECTED]> wrote:
> > > > RewriteEngine On
> > > > RewriteRule ^/1_big.jpg$ /komputer.htm?nr=1
> > >
> > > It did not work... I tried both this and regext for number
> >
> > Never say "It did not work." on a technical mailing list.  Explain
> > exactly what happened, including excerpts from the log files.  In the
> > case of mod_rewrite, it is essential to use the RewriteLog as well.
> 
> OK, elaborating:
> 
> in .htaccess I put these:
> RewriteEngine On
> RewriteRule ^/komputery/1_big.jpg$ /komputery.htm?nr=1

Put it into the main server config rather than an .htaccess file. 
Matching rules are different in .htaccess files and you need to look
at the RewriteBase directive.  (At minimum, you'd need to remove the
leading / from the RewriteRule.

> Turned off mod_negotiations and -multiviews from server config,
> Server returns 404 on /komputery/1_big.jpg and RewriteLog is empty,

If the RewriteLog is empty, that suggests that .htaccess files are not
being read (see AllowOverride) or you are using an .htaccess file in
the wrong directory.
Again, things are simpler if you put the config in the main config
file (at least to start).

Joshua.

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to