base href question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff Thies

    base href question

    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


  • Jukka K. Korpela

    #2
    Re: base href question

    "Jeff Thies" <nospam@nospam. net> wrote:
    [color=blue]
    > Is there a way to use base href over just part of the page?[/color]

    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.
    [color=blue]
    > Is there another way out,[/color]

    Not in HTML.
    [color=blue]
    > or do I have to write full paths?[/color]

    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

    Comment

    Working...