1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

SSI, mod_rewrite, and CO-OP, can they all be friends??!!

Discussion in 'Apache' started by Nintendo, Nov 1, 2005.

  1. #1
    I don't think it's possible, but I can dream that I'll be lucky.... :D

    Right now, all through out my sites I got

    <!--#include virtual="/cgi-local/bottom_index.cgi"-->

    So I used .htaccess to get that URL to be a fake URL to the php script

    RewriteBase /cgi-local/
    RewriteRule ^bottom_banner.cgi$ /ad_network.php [L]

    where domain.com/ad_network.php had just

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_427.php');
    echo $ad_network;
    ?>

    After that, when I went to the .cgi URL, SWEET, it showed the CO-OP links, BUT, through SSI the original .cgi stuff came up. :(

    Is there any way to make mod_rewrite and SSI be friends so the mod_rewrited URL comes up through SSI?!!! Or is there a way to make one .cgi file in a directory be a php file?
     
    Nintendo, Nov 1, 2005 IP