homepage Welcome to WebmasterWorld Guest from 54.237.71.86
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
index.php displayed instead of domain root
Marriot




msg:3859956
 7:51 pm on Feb 28, 2009 (gmt 0)

Just recently our PR 4 www.example.com/ has started to return www.example.com/index.php and shows a PR of 2.

Although may be not connected we had experienced a drop of about 5 places in Google all but 2 of which were recovered in the last few days.

It appeared to happen after the domain was hit by a temporary DNS error.

Any thoughts on what might cause www.example.com/index.php to show by default as opposed to www.widget.com/ ?

Thanks

[edited by: tedster at 7:54 pm (utc) on Feb. 28, 2009]
[edit reason] switch to example.com - it can never be owned [/edit]

 

youfoundjake




msg:3859977
 8:15 pm on Feb 28, 2009 (gmt 0)

I would recommend doing a 301 redirect from index.php to /, you can find some info here..
[webmasterworld.com...]

mine looks like this..

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://www.example.com/$1 [R=301,L]

g1smd




msg:3859982
 8:30 pm on Feb 28, 2009 (gmt 0)

As well as installing the redirect make sure that you also change the URLs in the links on your site to use the URL version without the index file filename within.

If you need to redirect other index filenames, use for OR and consider using something like \.(php[456]?html?[aj]spx?cfm)$ in place of the existing \.php part.

youfoundjake




msg:3859994
 8:49 pm on Feb 28, 2009 (gmt 0)

To further clarify what g1smd said, as he pointed out to me not too long ago, internal linking should be to the FQDN www.example.com/ instead of www.example.com/index.php or just index.php...

jecasc




msg:3859995
 8:49 pm on Feb 28, 2009 (gmt 0)

Just recently our PR 4 www.example.com/ has started to return www.example.com/index.php and shows a PR of 2.

What do you mean with "return www.example.com/index.php". Do you mean if you enter http://www.example.com you are redirected to http://www.example.com/index.php?

If this is the case you probably already set up a redirect, either in the htacces or in your PHP file. Setting up another redirect then may cause a loop.

g1smd




msg:3860000
 8:59 pm on Feb 28, 2009 (gmt 0)

I think he means "the URL listed in SERPs has recently changed".
At least, that's what I based my earlier answers on.

Marriot




msg:3860028
 10:00 pm on Feb 28, 2009 (gmt 0)

Thanks for your suggestions guys. I'll check it out

sirkevon




msg:3884405
 10:37 pm on Apr 2, 2009 (gmt 0)

Hope it's okay that I use this thread to inquire about the exact same problem I experienced two days ago. This is the first time this has happened to my site and my web guy doesn't know why.

I have two main keywords I use to rank for my home page and it ranks in the top 5. Two days ago, it went missing. It wasn't on the 2nd, 3rd, 4th, or 5th page, so I used a link operator to check and noticed the home page wasn't indexed at all. I googled my domain name only to see the home page URL with the /index.php at the end of it show up. Why Google indexed that page instead, just out of the blue, is a mystery to me.

But this is what transpired the week before that lead up to that problem. Last week, I transferred my domain from one registrar to Godaddy. I still use the same host, not Godaddy's. The transfer was successful and the site worked just fine after the transfer was complete. The site still retained its ranking. Then two days ago, this index.php shows up in place of my actual home page. Not only that, my home page, which is supposed to be a PR 5 site is now a PR 0. Yet, the few inner pages that also have PR still have theirs though. It's just the home page's PR that is gone. AND, 6 of my main inner pages have been de-indexed as well.

I'm hoping this is a known and fixable problem. My web guy immediately did a permanent 301 redirect from the URL with the index.php to the one without, and I'm just waiting for Google to re-crawl the page and see the redirect. Is this the correct fix to my problem? Because if not, could it be something to do with the domain transfer?

Thanks for any and all insights.

tedster




msg:3884410
 10:44 pm on Apr 2, 2009 (gmt 0)

The 301 redirect is the correct step, sirkevon. This is one of many "canonical problems" and they have been a plague on webmasters for many years.

You will find several good discussions about these problems in the Hot Topics area [webmasterworld.com], which is always pinned to the top of this forum's index page. And you may want to fix a whole batch of them before they make future troubles.

sirkevon




msg:3884417
 10:53 pm on Apr 2, 2009 (gmt 0)

Thanks for that, tedster. I've bookmarked it and will refer to it.

g1smd




msg:3884437
 11:36 pm on Apr 2, 2009 (gmt 0)

This one is also quite recent: [webmasterworld.com...]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved