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?
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?
I am using the system out forth on http://forums.digitalpoint.com/showthread.php?p=60600#poststop It is the method which uses passthru.php and some code in the .htaccess file.
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:
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.
Validating the site is what gives it weight. You will have more weight by using the base of the domain.
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?
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).
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.