/ or /index.php - Sort it out google !

fayeturkey

New Member
Iv seen a few people talking about getting different Adverts in adsense when they use domain.com and domain.com/index.phpI have just noticed this myself, when i go to mydomain.com i get mostly adverts which display islamic sites, budhist sites and oddly enough a site that sells hand carved wooden rocking horses, these adds do not perform well on mysite.But when i go to mydomain.com/index.php i get ads about hosting, webdesign, SEO, website promotion.... These ads perform very well, most poeple visiting my site are webmasters.I guess my point is, why don't google sort this huge flaw out?The whole point of adsense is to deliver adverts related to content, so how can they let such a devestating flaw (in regards to serving relivant ads) go on without addressing it?I even get a different page ranks.Well, with PageRank you will, because that's solely based on the numer & PR of URLs linking to it. If everybody outside of your domain links to http://www.example.com and all your internal homepage links point to http://www.example.com/index.php then each URL is going to have a different number of backlinks.You may be best setting up a 301 redirect so that all requests for / are actually forwarded to /index.php, that way only a single URL gets all the PageRank.As far as AdSense showing different ads. As the content is perfectly identical from either URL, perhaps Google sees the lesser URL as a duplicate or redundant, and thus doesn't rate as highly for the ads (so that page gets the more generic lower paying terms)?Hmmmmm, are you asking for trouble if you auto forward request for http://www.example.com/index.php to http://www.example.com?My next question was going to be "how can i make people go to index.php?" Axe The 301 redirect sounds like a good idea. I don't think google would penalise anyone for using a 301.I just tried the 301 redirect and FF told me "Firefox has detected that this site is redirecting in a way that will never end" lol.I guess it thinks / and index.php are the same thing because the server is serving index.php even though that page wasnt specifically called for.Yeah, basically, your directory index for / loads index.php, so when you forward index.php to / it results in an infinite loop If you set / to 301 redirect to index.php, then you shouldn't get the infinite loop error, as index.php won't forward you to anywhere, it'll give you the content.The only way around it would be to modify your index files list (also through .htaccess).I tried thisCode: [ Select ]no no, using mod_rewrite engine..Try...Code: [ Select ]I tried tell-your-friends.com and tell-your-friends.com/ and neither sent me to index.phpI think it may be because i have some other rewrite rules in the htaccess file..Right now it looks like thisCode: [ Select ]Okies, move it up above the others.I don't believe this. Now it's changed./ is showin averts related to content and index.php is showing adverts about islam and wedding singers.Surely google knows that / and index.php is showin the same page?
 
Top