httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] "translation" of address to one with GET varialble
Date Mon, 05 Sep 2005 16:49:55 GMT
On 9/5/05, Marcin 'Rambo' Roguski <rambo@id.uw.edu.pl> wrote:
> Hi, I have an interesting problem to crack, and to be honest- for now it's
> beyond my abilities.
> 
> Backstory: I have nice page with my computer collection with pictures,
> earlier they were downloaded as oridinary pictures, like
> http://rambo.id.uw.edu.pl/komputery/1_big.jpg , but since they have been
> used on some other sites, I'm now using PHP script to generate pictures with
> submission of "number" parameter.
> 
> My problem is now that bots indexed old address and aren't eager to change
> that. I, therefore, need a rule to redirect people from old address to new, BUT
> with passing parameter that normally would look in browser like:
> "http://rambo.id.uw.edu.pl/komputery.htm?nr=1",
> RedirectMatch won't work- I tried:it translates question mark as part of
> absolute address.
> 
> Is there a way to make either this, or RewriteRule, work?

RewriteEngine On
RewriteRule ^/1_big.jpg$ /komputer.htm?nr=1

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message