.htaccess to remove certain html tags from pages

Discussion in 'Apache' started by espmartin, Sep 18, 2007.

  1. #1
    Hello,

    I need to remove a custom tag from my pages, but at a loss as to how.

    EXAMPLE:
    <body>{{custom-tag}}
    ...
    {{/custom-tag}}</body>
    Code (markup):
    See those {{custom-tag}} and {{/custom-tag}}right after and before
    the opening and closing body tags? I need to remove it from the pages so
    users will not see it.

    It's placed there for a custom cgi script - but that script is down right now,
    so that tag is showing on the php pages now. I simply do NOT want to
    manually remove those 2 tags from every page, as that means a ton of
    search and replace.

    Is it possible with .htaccess?
     
    espmartin, Sep 18, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    .htaccess doesn't edit files, it only lets you change the URLs.

    If it's a script page, you'll have to edit the script. If it's static, you'll have to use a search and replace program to take them out and upload them.
     
    Nintendo, Sep 19, 2007 IP