Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
  1. google indexed http header information (In: Google)
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): g1smd, Logan
Forum Index · Search Engine Forums · Optimizing Your Website for the Search Engines · Google · Bot doesn't seem to follow header redirection
Member Message

marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/10/2006 08:46 am
Edit Message Delete Message Reply to this message

Hi All,

I have a problem getting my website in the Google listing. I know there should be quite a number of sites linking to me, but I don't appear anywhere near the top. I suspect that the way I open the site has something to do with it. Because the site is in different languages, each language is split up in different directories, ie /en, /de, /fr etc. In the main index.php I redirect browsers to the main laguage using the header method:
header("Location: http://www.mysite.com/en/"wink;
It works like a charm, but apparently not for bots. It looks like the bot does not follow the redirection or stops indexing for some reason. Any ideas on how I can improve this behaviour? I don't want to switch to franes, and I am aware of javascript as an alternative however I dont favor that.

Thanks!



Hampstead
Joined: Feb 20, 2001
# Posts: 1996

View the profile for Hampstead Send Hampstead a private message

Posted: 03/10/2006 08:51 am
Edit Message Delete Message Reply to this message

Put the URL in your profile and we may be able to offer suggestions.

One thing I can say right now is. Do not use frames! V. important.



marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/10/2006 09:14 am
Edit Message Delete Message Reply to this message

Done. Any help is appreciated!



Dinkar
Moderator
Joined: Aug 12, 2001
# Posts: 4317

View the profile for Dinkar Send Dinkar a private message

Posted: 03/10/2006 01:27 pm
Edit Message Delete Message Reply to this message

I would say - don't redirect. It doesn't necessary to redirect your visitors. Let them choose their language.




marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/11/2006 05:07 am
Edit Message Delete Message Reply to this message

So basically, have the root dir and basic language dir the same. That's an option as well. Have to think of a way to minimize administration on that. Thanks.



marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/11/2006 05:57 am
Edit Message Delete Message Reply to this message

I moved the content out of the default language dir to the root dir and remove the subdirectory. Afterward I created a soft link with that same name, pointing it to the root dir. This way I only have to maintain one dir instead of two. I still forsee problems with stuff like mod_rewrite, but it's a start. Seems to work for now though. Let's wait and see what the ranking does over the next week...



Hampstead
Joined: Feb 20, 2001
# Posts: 1996

View the profile for Hampstead Send Hampstead a private message

Posted: 03/11/2006 06:13 am
Edit Message Delete Message Reply to this message

Your server is dishing out 302s for the web facing page. Never do that. Your webfacing page needs to return a 200 header.





marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/12/2006 04:31 am
Edit Message Delete Message Reply to this message

How do i change that? The configuration is pretty default as far as i know.



Hampstead
Joined: Feb 20, 2001
# Posts: 1996

View the profile for Hampstead Send Hampstead a private message

Posted: 03/12/2006 04:44 am
Edit Message Delete Message Reply to this message

Remove the redirect and make sure the header is 200. Use WebBug or Rex Swains HTTP Viewer to check the headers.

[ Message was edited by: g1smd 03/12/2006 12:11 pm ]





marcoo
Joined: Mar 10, 2006
# Posts: 6

View the profile for marcoo Send marcoo a private message

Posted: 03/12/2006 05:35 am
Edit Message Delete Message Reply to this message

There's a Firefox plugin for this as well. Nothing but 200's while loading the main page. It redirects with 301 when loading the 'alias' for the main language's subdir, but then that's the same for the main dir. See what Gbot does with this configuration. Thanks so far!



Hampstead
Joined: Feb 20, 2001
# Posts: 1996

View the profile for Hampstead Send Hampstead a private message

Posted: 03/12/2006 05:55 am
Edit Message Delete Message Reply to this message

It is now. Well done.


Forum Index · Search Engine Forums · Optimizing Your Website for the Search Engines · Google · Bot doesn't seem to follow header redirection
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions