Forum Moderators: open

Message Too Old, No Replies

Is there one Relative URL for two different addresses

needed for an orphan page reframer

         

jdkuehne

4:03 pm on Jan 28, 2005 (gmt 0)

10+ Year Member



I have two framed website URL's set up where the second site is pointing to a subdirectory of the primary site as follows:

primaryURL-->root/index.htm
¦
secondaryURL-->root/subdir/index.htm

I am trying to set up an orphan page reframer JavaScript. It works fine on primaryURL but I'm having trouble getting it to work on secondaryURL because the pages can be referenced by two different URL's :

primaryURL/subdir/page.htm
or
secondaryURL/page.htm

The JavaScript works using relative URL's set up either one way or the other, but I'm trying to figure out one way of relative referencing the pages within the JavaScript so that the reframer works no matter how the search engine indexes the page. Is there one relative addressing method that will cover both possibilities?

Thanks
jdkuehne

tedster

7:11 pm on Jan 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this situation calls for absolute urls - no way around it that I can see.

jdkuehne

7:42 pm on Jan 28, 2005 (gmt 0)

10+ Year Member



Thanks tedster, that's what I was afraid of ;)
jdkuehne