httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] mod_rewrite
Date Thu, 22 Nov 2007 16:13:24 GMT
On Nov 22, 2007 4:56 PM,  <export@hope.cz> wrote:
> Hi,
> I would like to
> rewrite
> <img src="/Image/My-Image.jpg/1234">
>
> into
> <img src="/Media/1234.jpg">
>
> Is that possible to do so  with mod_rewrite ?

Short Answer: No.

Long Answer: Mod rewrite is used to change incoming request URLs. You
can't use mod rewrite the change the content of the html files send to
the client. You can however use mod_rewrite so that when a request
comes for /Image/My-Image.jpg/1234 this is mapped /Media/1234.jpg

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
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