How can I stop coop ads conflicting with ssi in the .htaccess file?

Discussion in 'Co-op Advertising Network' started by explorer, Mar 10, 2005.

  1. #1
    Hi, I have added the following line to my .htaccess file in order to enable the coop ads.

    AddType application/x-httpd-php .php .htm .html

    Normally I use the following commands to enable me to run server side includes so I can add header and footer files to the whole site and change the whole site by making a change to a .shtml file.

    AddType text/html .html
    AddHandler server-parsed .html

    If I use these commands, then the coop ads are not parsed.

    You will realise by now that I’m no expert.

    Could some kindly person please tell me what commands I should place in .htaccess that will not conflict with the coop ads?

    Thank you.
     
    explorer, Mar 10, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    If you are using SSI, you can utilize the ad network via SSI, and you would not need to add that to your .htaccess file.
     
    digitalpoint, Mar 10, 2005 IP
  3. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thanks for that - but I'm not sure how I would do this. :confused:
     
    explorer, Mar 10, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    It should be under the setup instructions. What site type are you using?
     
    digitalpoint, Mar 10, 2005 IP
  5. explorer

    explorer Well-Known Member

    Messages:
    463
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    110
    #5
    My site pages are all .html

    In order to get the same footer throughout the site I insert this line into each page:

    <!--#include virtual="footer.shtml" -->

    The file footer.shtml contains html code that I want to display as the footer on all pages.

    I think (maybe I'm wrong) the setup instructions apply to sites whose files are all .shtml ?

    I've tried again though, using the setup instructions but I'm still getting a conflict.

    Any suggestions as to how I could get this to work would be welcome. :)
     
    explorer, Mar 12, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    You do not need to set the stuff in the .htaccess file if you are using .shtml files.
     
    digitalpoint, Mar 12, 2005 IP