Setup Help

Discussion in 'Co-op Advertising Network' started by csaba, Dec 13, 2004.

  1. #1
    Hello
    I submitted 3 sites:
    Best-prom.com, wedding.pasztorservice.com and shoed.info.
    Best-prom.com is validated
    This site works with
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} ^(.*).htm [NC,OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*).html [NC]
    RewriteRule ^(.*) /passthru.php?file=$1
    </IfModule> in .htaccess,

    But my other two host provider don't allow the rewriteengine method. The pages of these sites are .html named with SSI, so the .htaccess content: adhandler server-parsed .html
    The ads aren't on my pages but here is an txt file www.shoead.info/ad_network_ads.txtwhat content the ads.
    On pages are a normal SSI call like: <!--#include virtual="/ad_network.php" -->
    I would like to add more sites but all my sites built in .html wit SSI.

    I don't know what can I do.

    Csaba
     
    csaba, Dec 13, 2004 IP
  2. csaba

    csaba Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's ok.

    I made a file ad.php: (what you offer to .php baset sites)
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>
    and call as an SSI
    <!--#include virtual="/ad.php" -->
    into my pages.

    Csaba
     
    csaba, Dec 13, 2004 IP
  3. Hank

    Hank Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Csaba:

    Did you also setup the .htaccess file? Or just / only the .php files for your second two sites?

    Hank
     
    Hank, Dec 13, 2004 IP
  4. Hank

    Hank Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Shawn, csaba, etal:

    Never mind. I managed to figure it out.

    To use csaba's workaround in Cpanel required a bit of investigation, but now my .html pages are showing ads wonderfully.

    If you have Cpanel, you need to setup two separate Apache Handlers:

    .htm server-parsed
    .html server-parsed

    Those handlers are inserted into the .htaccess file, by the way.

    Then csaba's SSI code is parsed and ads displayed properly.

    Hank
     
    Hank, Dec 13, 2004 IP
  5. csaba

    csaba Peon

    Messages:
    18
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Or if you havn't CPanel you can write direct into .htaccess file
    adhandler server-parsed .html .htm

    But I'm not shure it is a good method. I have some problem with validating this site waht works with method. The site is PR3, 56 pages indexed on google, and the weight is 0.

    Hank is your (site) weight right, or not?

    Csaba
     
    csaba, Dec 14, 2004 IP
  6. Hank

    Hank Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Csaba:

    I now have two sites validated and ads accepted in the network.

    The first one is a 4 page site with .php. It's a brand new site and it's weight is 0.

    The second one is about 35 page .html site using your workaround method. It's a PR5 website, with near every inside page a PR5 also and it's weight is 1,116.

    Having seen others in the forums boast of 40,000 weights (I'm sure for very large page count sites), I'm very curious as to what these numbers mean, and what it means when a site has a weight of 0.

    Hank
     
    Hank, Dec 14, 2004 IP