Special Characters in HTML

Discussion in 'HTML & Website Design' started by dtm32236, May 14, 2008.

  1. #1
    Hi,

    So, I just signed up for this site http://www.designerpages.com/, where I can host my company's products.

    On my products page, I'm trying to link to my page here:
    http://www.foremostgroups.com/K&B/he.../bastille.html

    The problem is, when I type in a &, it changes it to & #38; so the page comes up with Error 404.

    When I try doing & it makes the link
    http://www.foremostgroups.com/K&.../bastille.html
    and this also comes up with 404.

    Does anyone have any ideas how I can do this so that it will do the & correctly?
     
    dtm32236, May 14, 2008 IP
  2. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #2
    It is a very bad idea to have the & character in your link... I highly suggest you change / remove it.
     
    crath, May 14, 2008 IP
  3. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah, i realize that, but I don't really have a choice. we have so many backlinks to different pages in that folder, that I won't even be able to do all the redirects.

    the site was set up like that when i got here, but maybe in the future (when i'm not so busy) we'll be able to fix it.
     
    dtm32236, May 14, 2008 IP
  4. crath

    crath Well-Known Member

    Messages:
    661
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    100
    #4
    It sounds like is it their system convering the char to its html value. There is not too much you can do about this... besides maybe make some javascript to rewrite the link when the end user views it. Are you able to upload javascript in the area that this link will be?
     
    crath, May 14, 2008 IP
  5. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I'm not sure, probably not - that's not a bad idea though. I'll google how to make JS rewrite links (i'm not great with JS, but I understand the basic principles)
     
    dtm32236, May 14, 2008 IP
  6. dtm32236

    dtm32236 Guest

    Messages:
    320
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    %26 worked!
     
    dtm32236, May 14, 2008 IP