Go Back   5 Star Affiliate Marketing Forums > SEO, Blogging & Internet Marketing Forums > Search Engine Marketing & SEO Forum

Search Engine Marketing & SEO Forum Search Engine Marketing and Search Engine Optimization (SEO) topics

Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 08-08-2006, 08:47 AM
KLB KLB is offline
5 Star Member
 
Join Date: Apr 2006
Location: Portland Maine
Posts: 70
Default

Quote:
Originally Posted by StephenR
I was just thinking....You may be aware that Google recently updated its Adsense TOS. You can now add Adsense to 404 pages!
I have some pretty comprehensive .htaccess instructions and PHP code that do 301 redirects to get almost all lost users to the right pages on my site. One of the best sets of .htaccess rules I have that would help any site reduce the most common "lazy" 404 errors are:

RewriteRule ^([a-z|0-9].*)\.html.+$ /$1.html? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)/(.)target= /$1/? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)/default\.htm$ /$1/? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)\.htm$ /$1.html? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)\.ht$ /$1.html? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)\.h$ /$1.html? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)\.$ /$1? [NC,R=301,L]
RewriteRule ^([a-z|0-9].*)&gt$ /$1? [NC,R=301,L]

Now obviously this assumes that the file extension used for pages is only .html. This also assumes that one uses index.html, not default.htm for directory index pages. Note, you might need to add your domain name to the target URL depending on your server configuration.

Oh the trailing question mark on the target URL is to strip off query strings.
__________________
Ken Barbalace
Advertise your site on: EnvironmentalChemistry.com
Reply With Quote
  #12 (permalink)  
Old 08-09-2006, 07:30 AM
Teli's Avatar
Teli Teli is offline
5 Star Senior Member
 
Join Date: Nov 2005
Location: Florida
Posts: 385
Default

I never did understand why Google decided to allow AdSense on 404 pages. Well, that's not entirely true.

In some instances, a person could actually be looking for information on a specific topic, land on a page that doesn't exist, and click out to another website that does through AdSense. But, in most cases, the site owner really doesn't want the user to leave the site (at least, I generally don't), and provides suggestions for the user.

Plus, the information 404 pages tend to be generic - sorry, couldn't find what you're looking for - text. How does that help advertisers using AdWords?

Ah, oh well, I'm just thinking out loud and rambling now...

~ Teli
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -7. The time now is 03:04 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2007, Crawlability, Inc.
©2005 - 2008 Linda Buquet - 5 Star Affiliate Programs