Re: rewriterule + image name
- From: allain <allain.lalonde@xxxxxxxxx>
- Date: Sun, 9 Dec 2007 13:30:16 -0800 (PST)
On Dec 6, 2:15 pm, "Rik Wasmus" <luiheidsgoe...@xxxxxxxxxxx> wrote:
On Thu, 06 Dec 2007 18:10:07 +0100, JackpipE <pipe.j...@xxxxxxxxx> wrote:
I need to rename a generic image to the name of the product that's
being viewed on the page:
/theme/images/fullProfile.gif to -> /theme/images/
productxxx.jpg
The productxxx.jpg image doesn't physically exist so I just need to
rename the generic one and still display the same image under
different name.
It think you mean the reverse?
If a request for /theme/images/productxxx.jpg comes in, and doesn't exist,
serve fullProfile.gif?
Highly offtopic here, ask in for instance alt.apache.configuration (or one
of the many forums almost dedicated to mod_rewrite), or look at the manual
for RewriteCond and the -f switch.
--
Rik Wasmus
..htaccess ErrorDocument as a php file that generates the missing image
by copying or using GD library.
.
- References:
- rewriterule + image name
- From: JackpipE
- Re: rewriterule + image name
- From: Rik Wasmus
- rewriterule + image name
- Prev by Date: Re: How to see if a PEAR package exists?
- Next by Date: Re: How can I access SQLite from PHP?
- Previous by thread: Re: rewriterule + image name
- Next by thread: wrapping an if contruct
- Index(es):
Relevant Pages
|
Loading