apache directives in html

Discussion in 'Apache' started by SimonCuts, Jun 3, 2006.

  1. #1
    How can I insert the apache directives in a simple HTML page ?
     
    SimonCuts, Jun 3, 2006 IP
  2. MaxPowers

    MaxPowers Well-Known Member

    Messages:
    264
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    120
    #2
    It can't be done in a simple HTML file. The Apache config file (httpd.conf) is where to set the changes and that file usually allows the .htaccess file to set directives externally.

    What type of directives?
     
    MaxPowers, Jun 3, 2006 IP
  3. SimonCuts

    SimonCuts Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the good reply.
    I need to use the AddCharset directive.
    I am a new to apache,
    my problem is that the server ignores the charset
    which I am supplying in the META tag of the HTML
    and as a result he does not identify the right characters.
     
    SimonCuts, Jun 3, 2006 IP
  4. mykoleary

    mykoleary Peon

    Messages:
    64
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can use a scripting language to add headers if you'd like. For example at the very top of a PHP page:

    header("Content-type: text/html; charset=utf-8");

    Then make the pages you need that on PHP pages instead of HTML pages
     
    mykoleary, Jun 3, 2006 IP
  5. SimonCuts

    SimonCuts Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    A scripting language would be appropriate for me.
    But my site is written in ASP.
    So perhaps an external file is the solution.
    If nevertheless you have a solution in ASP , I would appreciate it.
     
    SimonCuts, Jun 3, 2006 IP
  6. mykoleary

    mykoleary Peon

    Messages:
    64
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
  7. SimonCuts

    SimonCuts Peon

    Messages:
    52
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks,
    Now I am getting more experience,
    I'll check the various solutions , which were introduced in this thread.
     
    SimonCuts, Jun 4, 2006 IP