Home Page

Discussion in 'Co-op Advertising Network' started by larryweiss, Sep 4, 2005.

  1. #1
    Every page shows an ad.

    The problem is this:
    Type:
    into the browser and there is no ad, but you do see my index.htm. But:
    Type:
    It has the ad.

    I have searched this forum looking for a similar question, but have not been able to find it.

    It cannot be unique to my site, how do others handle it?
     
    larryweiss, Sep 4, 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 want anyone to look at it, I would suggest posting the real URL.
     
    digitalpoint, Sep 4, 2005 IP
  3. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
  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
    Hmmm... that's weird. I'm assuming you don't have 2 index pages right? Like an index.html and an index.htm. If that's not the case, what method are you using to run ads?
     
    digitalpoint, Sep 4, 2005 IP
  5. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #5
    larryweiss, Sep 4, 2005 IP
  6. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #6
    There is only index.htm

    no index.anythingelse
    no default.anything
     
    larryweiss, Sep 4, 2005 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    I believe Apache *normally* gives REQUEST_FILENAME as the *actual* internal filename, but in your case it does not seem to be. Since your server supports PHP, I suppose you could also create a index.php file that was something like this:

    <?php
        
    	if (!function_exists('file_get_contents')) {
    		function file_get_contents($url) {
    			$handle = fopen($url, 'r');
    			$string = fread($handle, 4096000);
    			fclose($handle);
    			return $string;
    		}
    	}
        
    	include ('ad_network.php');
    	echo preg_replace ("/<\/body>/i", $ad_network . '</body>', file_get_contents('index.htm'));
     
    ?> 
    PHP:
     
    digitalpoint, Sep 4, 2005 IP
  8. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #8
    Please excuse, I am not trying to make a lot of posts, just having new input.

    I changes the account settings from http://www.wackyweiss.com


    to http://www.wackyweiss.com/index.htm

    and the site validated. I doubt thats what you want to hear, but as it is validated, how about doing what it is that makes my site have weight.
     
    larryweiss, Sep 4, 2005 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    Validating the site is what gives it weight. You will have more weight by using the base of the domain.
     
    digitalpoint, Sep 4, 2005 IP
  10. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #10
    Index.htm is a PR3 page with google. Would not index.php have no pr, and no cashe and no standing with them?

    I am afraid to hurt the site.

    Is there nothing I can ad to the existing page?
     
    larryweiss, Sep 4, 2005 IP
  11. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #11
    index.htm isn't what has the PR, the base domain (no file specified) is what the index.htm is inheriting it from. Adding index.php, will not change how anything, since that would just get called when no file is specified (base domain).
     
    digitalpoint, Sep 4, 2005 IP
  12. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #12
    Sorry about the duplicate, I didnt realize we spilled into a new page, just thought it never went through.

    So I just rename the page to index.php, and include the code within the body tag?

    I am unable do do anything with PHP on my own.
     
    larryweiss, Sep 4, 2005 IP
  13. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #13
    That would work too... (renaming index.htm file to .php then using the normal instructions for it).
     
    digitalpoint, Sep 4, 2005 IP
  14. larryweiss

    larryweiss Active Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    73
    #14
    You were so right. Everthing worked, and I even have some weight. Thanks very much.
     
    larryweiss, Sep 4, 2005 IP