base href question

Discussion in 'HTML' started by Jeff Thies, Apr 1, 2004.

  1. Jeff Thies

    Jeff Thies Guest

    I have a template driven site, the template is full of images and links.

    At some point (during a secure order) the user is redirected to a secure
    server (different domain) using the same template.

    Now, I want the links to point back to the old insecure domain. I could
    use a base href to do that (links are all / relative, ie: /info.html) but
    then the images (also root referenced) would be drawn from the insecure
    domain and there might be a security warning.

    Is there a way to use base href over just part of the page?

    Is there another way out, or do I have to write full paths?

    Jeff
     
    Jeff Thies, Apr 1, 2004
    #1
    1. Advertising

  2. "Jeff Thies" <> wrote:

    > Is there a way to use base href over just part of the page?


    No. The base element is allowed in the head part only, so it inevitably
    applies to the entire page, and only one base element is allowed.

    > Is there another way out,


    Not in HTML.

    > or do I have to write full paths?


    Maybe you could use a preprocessor, but that's external to HTML.

    --
    Yucca, http://www.cs.tut.fi/~jkorpela/
    Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
     
    Jukka K. Korpela, Apr 1, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CRON
    Replies:
    24
    Views:
    200,816
    Adrienne Boswell
    Jun 20, 2006
  2. Soren Vejrum
    Replies:
    4
    Views:
    620
    Lasse Reichstein Nielsen
    Jul 5, 2003
  3. saiho.yuen
    Replies:
    3
    Views:
    434
    kaeli
    Sep 14, 2004
  4. Replies:
    2
    Views:
    479
  5. Vincent van Beveren

    BASE HREF and A HREF="#" onclick="..."

    Vincent van Beveren, Jul 6, 2006, in forum: Javascript
    Replies:
    2
    Views:
    327
    Vincent van Beveren
    Jul 6, 2006
Loading...

Share This Page