Adsense - HTML Nugget - Missing banners
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
Adsense - HTML Nugget - Missing banners
On the root page I have three adsense banners. The horizontal one at the top works correctly. The two sidebar adsense units disappeared today.
If I navigate to a specific article - all three adsense banners display correctly.
All three banners worked flawlessly for about one month. The only recent changes I have made was adding and removing shoutbox because I was receiving spam on it.
I am hoping someone can help. I am a novice.
Thanks for this wonderful software!
http://poopingbag.com
If I navigate to a specific article - all three adsense banners display correctly.
All three banners worked flawlessly for about one month. The only recent changes I have made was adding and removing shoutbox because I was receiving spam on it.
I am hoping someone can help. I am a novice.
Thanks for this wonderful software!
http://poopingbag.com
Dale
-
kleinerChemiker
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact:
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
I made one more discovery:
If I navigate to http://www.poopingbag.com
The sidebar ads are there.
If I navigate to http://poopingbag.com
The sidebar ads are NOT there.
If I navigate to http://www.poopingbag.com
The sidebar ads are there.
If I navigate to http://poopingbag.com
The sidebar ads are NOT there.
Dale
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
I tried removing both sidebar nuggets with the adsense code and added a new single sidebar nugget to the bottom. I navigated to http://poopingbag.com and ...
The single ad worked. I added a second sidebar ad and both disappeared again.
If I navigate to my page with the WWW suffix the ads always work fine. Without the WWW suffix it is not.
There is probably a simple fix here ... remember I am a novice so no jokes.
Smile
The single ad worked. I added a second sidebar ad and both disappeared again.
If I navigate to my page with the WWW suffix the ads always work fine. Without the WWW suffix it is not.
There is probably a simple fix here ... remember I am a novice so no jokes.
Smile
Dale
-
kleinerChemiker
- Regular
- Posts: 765
- Joined: Tue Oct 17, 2006 2:36 pm
- Location: Vienna/Austria
- Contact:
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Dale - I'm impressed that you ask a question here on the forums, but have continued to try and solve the problem on your own while awaiting input from the community!!
Perrhaps the Adsense people can help you, but I have another suggestion for you.
You probably configured Adsense for your specific domain, including the www prefix.... right?
My suggestion would be to redirect all traffic so that it always points to the www address, which, btw, is a good thing to do for search engine optimization.
To accomplish this, you need 2 things:
First, make sure you have your site configured so that the base URL is http://www.poopingbag.com - and I am pretty sure you have already done that. But if you have not, log into the administration backend, and go to Administration -> Configuration -> Paths -> URL to blog and supply that address, inclusive of www, to that field.
Next, you need a simple text file named .htaccess (ie, DOThtaccess, no extension) in the root folder of where this serendipity installation resides. You will create this file using a simple text editor that does not insert formatting, such as font decorations. I only use Windoze so the only thing I can recommend is Notepad.
In this file named .htaccess, you need to redirect any traffic that came to your site without using the www prefix so that it DOES use the www prefix. This is what you need:
Please feel free to let me know if you require assistance.
Perrhaps the Adsense people can help you, but I have another suggestion for you.
You probably configured Adsense for your specific domain, including the www prefix.... right?
My suggestion would be to redirect all traffic so that it always points to the www address, which, btw, is a good thing to do for search engine optimization.
To accomplish this, you need 2 things:
First, make sure you have your site configured so that the base URL is http://www.poopingbag.com - and I am pretty sure you have already done that. But if you have not, log into the administration backend, and go to Administration -> Configuration -> Paths -> URL to blog and supply that address, inclusive of www, to that field.
Next, you need a simple text file named .htaccess (ie, DOThtaccess, no extension) in the root folder of where this serendipity installation resides. You will create this file using a simple text editor that does not insert formatting, such as font decorations. I only use Windoze so the only thing I can recommend is Notepad.
In this file named .htaccess, you need to redirect any traffic that came to your site without using the www prefix so that it DOES use the www prefix. This is what you need:
Code: Select all
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]=Don=
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
Thank you for your help.
I changed the URL to Blog setting from http://poopingbag.com to http://www.poopingbag.com
I noticed that a file on the root of the Serendipity install called .htaccess already existed so I appended the recommended code as follows:
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
# BEGIN s9y
DirectoryIndex /index.php
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
I hope I did that correctly.
After implementation I added an adsense sidebar ad in a nugget. There was only an empty space where the ad should have been positioned.
It is weird that the ads work on any page with exception to the root. I have sent an email to Adsense for assistance.
I changed the URL to Blog setting from http://poopingbag.com to http://www.poopingbag.com
I noticed that a file on the root of the Serendipity install called .htaccess already existed so I appended the recommended code as follows:
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
# BEGIN s9y
DirectoryIndex /index.php
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
I hope I did that correctly.
After implementation I added an adsense sidebar ad in a nugget. There was only an empty space where the ad should have been positioned.
It is weird that the ads work on any page with exception to the root. I have sent an email to Adsense for assistance.
Dale
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
I do not use Adsense, so I am not sure how it is configured regarding the actual domain it appears on, how/when to display, etc. The redirect code you added to .htaccess definitely works, so you might want to make sure that adsense is also set up to use the full www address as well. The good news is that it appears that only a single sidebar ad is not behaving itself... everything else appears to be working now. If you do not discover the remaining problem with that one ad on your own, hopefully the adsense support people will have the answer for you.
=Don=
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
I looked for a configuration option on my adsense administration page and didn't have any luck locating a setting for the base URL. I will send them another request for assistance and see if they can help correct the URL.
Thanks again for the tip. I am going to keep reading the forum to see if I can learn more regarding optimization of my site.
Thanks again for the tip. I am going to keep reading the forum to see if I can learn more regarding optimization of my site.
Dale
-
poopingbag
- Regular
- Posts: 14
- Joined: Sat Nov 01, 2008 3:19 am
- Contact:
I previously added the code in the .htaccess:
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Unfortunately, my subdomains that I use no longer work. They re-direct to www.poopingbag.com.
Is there a way to exclude certain urls such as http://images.poopingbag.com ?
Thanks in advance
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Unfortunately, my subdomains that I use no longer work. They re-direct to www.poopingbag.com.
Is there a way to exclude certain urls such as http://images.poopingbag.com ?
Thanks in advance
Dale
-
Don Chambers
- Regular
- Posts: 3657
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
I am no expert in these rewrite rules, but this *MIGHT* work:poopingbag wrote:I previously added the code in the .htaccess:
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]
Unfortunately, my subdomains that I use no longer work. They re-direct to www.poopingbag.com.
Is there a way to exclude certain urls such as http://images.poopingbag.com ?
Thanks in advance
Code: Select all
# REDIRECT ALL NON WWW TRAFFIC TO WWW
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www [NC]
# Stop processing if "images" subdomain is requested
RewriteCond %{HTTP_HOST} ^images\.poopingbag.com
RewriteRule .* - [L]
# Otherwise redirect
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]=Don=