Printer Friendly Version
Email this thread to a friend
|
Redirection of a page (In: Coding & Databases - PHP, ASP, Perl, etc.)
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
marcoo
Joined: Mar 10, 2006
# Posts: 6
|
Posted: 2006-Mar-10 16:46
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/" ;
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: 2061
|
Posted: 2006-Mar-10 16:51
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
|
Posted: 2006-Mar-10 17:14
Done. Any help is appreciated!
|
 |
Dinkar
Staff
Joined: Aug 12, 2001
# Posts: 4391
|
Posted: 2006-Mar-10 21:27
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
|
Posted: 2006-Mar-11 13:07
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
|
Posted: 2006-Mar-11 13:57
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: 2061
|
Posted: 2006-Mar-11 14:13
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
|
Posted: 2006-Mar-12 12:31
How do i change that? The configuration is pretty default as far as i know.
|
 |
Hampstead
Joined: Feb 20, 2001
# Posts: 2061
|
Posted: 2006-Mar-12 12:44
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
|
Posted: 2006-Mar-12 13:35
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: 2061
|
Posted: 2006-Mar-12 13:55
It is now. Well done.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- 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
|
|