Problem seeing Adsense ads (possibly Wordpress or htaccess related)

Discussion in 'Site & Server Administration' started by Starving SEO, May 14, 2009.

  1. #1
    I am having an issue showing adsense on my front page, and I can replicate it under certain conditions. The ads aren't showing properly on the front page of my site only - the sidebar 300x250 ad doesn't show at all (only white space shows), and the top header is a PSA ad. The ads are working fine on other pages within the site.

    I think I have narrowed the cause of this problem. I think it has something to do with either the .htaccess or the index.php, and possibly the permalinks. For example, when permalinks are set as numbers, I get this error on some other pages of the site. Also, right now I have my wordpress installed in the root directory of my site, but earlier when I had it i installed in domain.com/wordpress/ it worked fine, until I set Blog Adress to domain.com, at which point the problem appears.

    Just for the record, I am using the latest version of Wordpress, and every other part of the theme/wordpress seems to work.

    I'm hoping someone out there knows anything about this issue. Thanks.

    PS. I'm excluding my site url, but if anyone wants to take a look, and if allowed by forum rules, I can post it in the thread.
     
    Starving SEO, May 14, 2009 IP
  2. starfall87

    starfall87 Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The only thing I can think of is that Google has not indexed your new home page so it does not know what kind of ads to display. Thus you wind up with a PSA and a blank. Before when you had WP in its own directory, did you access the index page with a different url?
     
    starfall87, May 14, 2009 IP
  3. Starving SEO

    Starving SEO Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    A somewhat typical wordpress install places all of the wordpress files into a /wordpress/ directory within your public html folder. You then place an index.php file in the root with the following code:

    `<?php
    /**
    * Front to the WordPress application. This file doesn't do anything, but loads
    * wp-blog-header.php which does and tells WordPress to load the theme.
    *
    * @package WordPress
    */

    /**
    * Tells WordPress to load the WordPress theme and output it.
    *
    * @var bool
    */
    define('WP_USE_THEMES', true);

    /** Loads the WordPress Environment and Template */
    require('./wordpress/wp-blog-header.php');
    ?>
    `

    If I don't include that index.php, thus leaving the domain.com/wordpress/ directory as my blog url, everything works. If I change it to domain.com/, it doesn't.
     
    Starving SEO, May 14, 2009 IP