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. Advertisements

  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. Advertisements

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:
    25
    Views:
    218,436
    davidb
    May 29, 2015
  2. dfloss
    Replies:
    1
    Views:
    3,869
    Jukka K. Korpela
    Jan 14, 2007
  3. Soren Vejrum
    Replies:
    4
    Views:
    1,007
    Lasse Reichstein Nielsen
    Jul 5, 2003
  4. saiho.yuen
    Replies:
    3
    Views:
    808
    kaeli
    Sep 14, 2004
  5. Replies:
    2
    Views:
    906
  6. Vincent van Beveren

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

    Vincent van Beveren, Jul 6, 2006, in forum: Javascript
    Replies:
    2
    Views:
    731
    Vincent van Beveren
    Jul 6, 2006
  7. kelvlam
    Replies:
    6
    Views:
    704
    kelvlam
    Jul 18, 2006
  8. David
    Replies:
    1
    Views:
    468
    David
    Dec 6, 2006
Loading...