Welcome! Log In Create A New Profile

Advanced

Re: Blank Adsense ads on certain pages

António P. P. Almeida
October 24, 2011 08:14PM
On 24 Out 2011 01h39 WEST, appa@perusio.net wrote:

> On 24 Out 2011 01h03 WEST, nginx-forum@nginx.us wrote:
>
>> I have inserted my adsense code into my site in certain areas, and
>> the issue is very strange: ads only randomly work on some pages,
>> and others the ad block still 'loads', but nothing appears. Just a
>> black box.
>>
>> When you load the homepage page, you see the ad...but clicking on
>> the forums tab takes you to another page with the **exact same ad
>> code**, but nothing loads. You can even rightclick where the ad
>> should be and you can see the iframe it inserted. If you go to the
>> forums and navigate the member list, random profiles show ads,
>> others do not. Certain forums show ads, other ads do not. Certain
>> forum topics show ads, other don't. Refreshing the page does not
>> help. This stays consistent across multiple browsers.
>>
>> The forum has a "SEO" function available, which I have enabled so
>> the URLs look better. The .htaccess file if I had gone with apache
>> is structured as follows:
>>
>> <IfModule mod_rewrite.c>
>> Options -MultiViews
>> RewriteEngine On
>> RewriteBase /
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteRule . /index.php [L]
>> </IfModule>
>>
>> Turning the SEO URL function to 'off' removes the issue of ads not
>> appearing, but this isn't acceptable for us. It just makes me think
>> I have done something wrong in the NGINX config file.
>>
>> Here is the site-available file I have done for this website:
>>
>> -------------------------------------------------
>>
>> ##redirect to www
>> server {
>> server_name twinkinfo.com;
>> rewrite ^/(.*) http://www.twinkinfo.com/$1 permanent;
>> }
>
> Like this:
>
> server {
> server_name twinkinfo.com;
> return 301 http://www.twinkinfo.com;
> }

Oops. $request_uri is missing:

server {
server_name twinkinfo.com;
return 301 http://www.twinkinfo.com$request_uri;
}

--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Blank Adsense ads on certain pages

Skolde October 23, 2011 08:03PM

Re: Blank Adsense ads on certain pages

António P. P. Almeida October 23, 2011 08:42PM

Re: Blank Adsense ads on certain pages

António P. P. Almeida October 24, 2011 08:14PM

Re: Blank Adsense ads on certain pages

Skolde October 24, 2011 08:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready