Re: Language of a web site in ASP.NET
- From: "David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 12 May 2007 13:34:40 +0100
Patrice, I would advise against advising to check for robots and write the
page differently, as that can get you penalised by the search engines. You
should design the page to be as search engine friendly from the outset. If
you are thinking of using linkbuttons, consider if you can use a hyperlink
instead. It might mean you having to add stuff to your querystring and doing
request.querystring in your code, but it means that not only can SEs read
the site, but also allow pages to be bookmarked easily.
As to the problem with url rewriting. I have just checked my log files. I am
getting a 200 status code on re-written pages. I also have a 404 error page
that does rewriting and that is returning a 200.
I have just checked my log files. The only 302 I have is where I expect
them. This is a redirect from my login page and a redirect if my session
times out whilst logged in.
--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
<patrice_scribe@xxxxxxxxxxx> wrote in message
news:1178969390.894391.67110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sorry, wondered what the exact problem was as you talked about several
things in your first posts...
How do you perform language selection ? If you just serve content
based on the user agent language preference a robot will always see
the same language. Also keep in mind that robots are just following
hyperlinks. So if you have a way for the user to select manually the
preferred language using a postback, the robot won't detect and use
this.
AFAIK the usual solution is to check for the user agent. If this is a
robot add hyperlinks to alternate languages (possibly only on the home
page) so that the robot can follow those links and index alternate
language contents...
URL rewriting allows to expose the same page as both /mysite/fr/
page.aspx and /mysite/en/page.aspx (it makes those request be
processed as /mysite/page.aspx?lang=fr or /mysite/page.aspx?lang=en)
but it doesn't matter, a robot will still be able to index those pages
as long as it find an hyperlink.
If it looks like your site should already work, feel free to exlain
how it works regarding language selection (and if public you could
even post its url).
--
Patrice
On 11 mai, 21:31, "ThunderMusic"
<NoSpAmdanlatathotmaildot...@xxxxxxxxxx> wrote:
hi,
thanks for the link... but I already know how to localize an ASP.NET
application. The thing is, site indexers like the ones of Google don't try
every languages for a page, it just indexes each page with it's url and
the
content it encounters on the page... so I want to know how I can do my
site
so the indexers can index my site in english, in french and maybe in
spanish
(maybe someday) or any other language (and can lead the user to the page
in
the right language too). Someone told me I should do
likewww.mysite.com/fr/pages.aspxandwww.mysite.com/en/pages.aspxbut that
would
mean I have to copy my pages in 2 or 3 different directories and load
different resource files... this is an option, but I would like to avoid
it. Is there a better way to do so?
I've heard of url rewriting, but everytime I try to rewrite a URL, I end
up
getting a blank page with only the basic structure of the html (<doctype
...><html><head></head><body></body></html>). Moreover, I've seen many
sites
(forums and blogs) that said the URL rewriting mecanism has problems with
IIS6 and Windows 2003 because it returns a 302 instead of a 200 for
rewritten pages, which causes indexers not to index the page.
Anybody have an idea?
Thanks
ThunderMusic
"Patrice" <http://www.chez.com/scribe/> wrote in message
news:u3hRrS6kHHA.4904@xxxxxxxxxxxxxxxxxxxxxxx
Try
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/localization/defa...
and especially "Global and Local resources"...
Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...
---
Patrice
"ThunderMusic" <NoSpAmdanlatathotmaildot...@xxxxxxxxxx> a écrit dans le
message denews:
udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__END_MASK_i?a63jfAD$z__@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Ok, I find myself having a lot of troubles with URL Rewriting and I've
seen
on the net that in some situations, indexers have difficulty indexing
sites
because of some flaws in the url rewriting mecanism...
Does anybody have a solution to my problem? I mean, I want to be able
to
localize my web site without having to dupplicate all the pages in 2-3
(fr,
en, sp(optional)) directories and so the indexers can index the right
content (in the right language) and people can bookmark the page in the
right language too. Is it something possible? I'd like to avoid
dupplicating
pages because it could mean a pain in the 'you know what' to
maintain...
imagine a bug in one would have to be corrected in 3 places instead of
1...
Thanks a lot
ThunderMusic- Masquer le texte des messages précédents -
- Afficher le texte des messages précédents -
.
- Follow-Ups:
- Re: Language of a web site in ASP.NET
- From: Patrice
- Re: Language of a web site in ASP.NET
- References:
- Language of a web site in ASP.NET
- From: ThunderMusic
- Re: Language of a web site in ASP.NET
- From: Patrice
- Re: Language of a web site in ASP.NET
- From: ThunderMusic
- Re: Language of a web site in ASP.NET
- From: patrice_scribe
- Language of a web site in ASP.NET
- Prev by Date: Re: http://localhost not resolving on Vista Ultimate
- Next by Date: web.config question
- Previous by thread: Re: Language of a web site in ASP.NET
- Next by thread: Re: Language of a web site in ASP.NET
- Index(es):
Relevant Pages
|