RSS Forums RSS
Please support our Linux Servers and Apache advertiser: Programming Forums

Apache mod_rewrite with Google Ads

Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,073
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 118
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: Apache mod_rewrite with Google Ads

  #2  
Jul 12th, 2003
I think I might have just hit another milestone in trying to debug this problem. I use an index.cgi file in the root of the /www directory to forward subdomains to particular forums.

For example, each subdomain is a mirror of the entire site. However, http://linux.techtalkforums.com forwards you to http://linux.techtalkforums.com/forums/f3.html (which is the linux forum homepage). From there, you can browse the entire site under the linux subdomain.

Now here's the catch. If you traverse the entire site via www.techtalkforums.com all of the google ads displayed are relevant to all of computing (e.g. content is based on techtalkforums.com/forums/index.html). However, if you traverse the entire site via linux.techtalkforums.com, all of the ads are based on linux. If you traverse the entire site via webdev.techtalkforums.com, you'll see only web development links in google regardless of where in the site you are.

It seems as if the google ads are always pulling from the default homepage instead of the current page. Of course, this doesn't happen when directly accessing .php files. Only when accessing their .html counterparts.

This is so frustrating. I can't decide which is more important! Making money by displaying relevant ads. Or hopefully increasing my search engine popularity via static pages!!
Dani the Computer Science Gal
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 7:03 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC