You are here:  » prevent rewrite


prevent rewrite

Submitted by henk on Fri, 2006-03-31 20:37 in

HI

How can i prevent the image map or images for rewriting.

see my site what i mean the index linkik.com is ok but when you go to another

http://www.linkik.com/merchant/Badge-Direct/

its going wrong.

Thx HEnk

Submitted by searley on Fri, 2006-03-31 21:01

There is an easy cure to this, in your template use the full image patch

eg:

<img src="http://www.linkik.com/images/slogan.jpg">

not just

<img src="/images/slogan.jpg">

as the laster assume the current directory PLUS the path supplied, and using rewrite in the way the PT thricks things into thinking you are in a sub-directory and not the root, so in your example it assumes the corrct path is http://www.linkik.com/merchant/Badge-Direct/images/slogan.jpg

so as i say, if you provide the full path, then server/browser will not try and assume what is correct

Submitted by henk on Fri, 2006-03-31 22:42

change it and it worked thx m8

HEnk