Forum Moderators: phranque

Message Too Old, No Replies

Redirect gif to htm

         

janbeeu

6:24 am on Feb 9, 2006 (gmt 0)

10+ Year Member



Is it possible in an htaccess file to redirect the url of an image to a url of a page like

Redirect /images/map.gif http:]//www.mysite.com/map.htm

[edited by: jdMorgan at 3:19 pm (utc) on Feb. 9, 2006]
[edit reason] De-linked. [/edit]

jdMorgan

3:22 pm on Feb 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer depends on the browser.

Generally. you can redirect a text link, like <a href="/images/map.gif">, or a directly-typed-in URL, to a new page.

But you can't redirect an image link like <img src="/images/map.gif"> to a new page, because the browser is expecting a graphical page element and not a new page.

It does not know how to display a page in the area where the image is supposed to load.

Jim

janbeeu

3:39 pm on Feb 9, 2006 (gmt 0)

10+ Year Member



Clear as always JP. Thank you.