Re: [users@httpd] "translation" of address to one with GET varialble

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

 



On 9/5/05, Marcin 'Rambo' Roguski <rambo@xxxxxxxxxxxx> 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: 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