Selective URL rewriting?

Is there any way to force a rewrite (or NO rewrite) of a URL? For example,

when adding a bookmark (or netlet address) add 'something' to the address so

it's (NOT) rewritten?

I think that would be a great option, so I hope this is possible....

Kind Regards,

Stephen Trap

Stephen Trap

EurASP nv

Woodrow Wilsonplein 5 E

B-9000 Gent

Fax: +32 (0)9 235 14 14

GSM: +32 (0)479 35 35 30

E-mail: stephen.trap@eurasp.com

[512 byte] By [] at [2007-11-25 4:30:08]
# 1

In the case of bookmarks, the URL is stored in the Javascript variable

'surf_form_URL' in:

/etc/opt/SUNWips/desktop/default/iwtBookmarkProvider/display.template

This gets rewritten as this variable is listed in the gateway admin page

under one of the following:

Rewriting Javascript variables in URL's

Rewriting Javascript variables function

To force all bookmarks not to get re-written just remove the

surf_form_URL reference from the above.

For selective rewrites depending on ending, first rename every occurance

of surf_form_URL in the template to something like newurl;

Then change what was this line:

var surf_form_URL = url;

to:

if (url.slice(-10) == "?norewrite"){ //url ends in ?norewrite

newurl = url.slice(0,-10);

} else {

surf_form_URL = url;// gateway rewrites url here

newurl = surf_form_URL;

}

Stephen Trap wrote:

>

> Is there any way to force a rewrite (or NO rewrite) of a URL? For example,

> when adding a bookmark (or netlet address) add 'something' to the address so

> it's (NOT) rewritten?

> I think that would be a great option, so I hope this is possible....

>

> Kind Regards,

> Stephen Trap

>

> Stephen Trap

> EurASP nv

> Woodrow Wilsonplein 5 E

> B-9000 Gent

> Fax: +32 (0)9 235 14 14

> GSM: +32 (0)479 35 35 30

> E-mail: stephen.trap@eurasp.com

at 2007-6-29 2:34:01 > top of Java-index,Web & Directory Servers,Portal Servers...