473,387 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Language of a web site in ASP.NET

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
May 10 '07 #1
7 1872
Try
http://quickstarts.asp.net/QuickStar...n/default.aspx
and especially "Global and Local resources"...

Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...

---
Patrice

"ThunderMusic" <No*************************@NoSpAm.coma écrit dans le
message de news: ud**************@TK2MSFTNGP02.phx.gbl...
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


May 11 '07 #2
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 like
www.mysite.com/fr/pages.aspx and www.mysite.com/en/pages.aspx but 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:u3**************@TK2MSFTNGP05.phx.gbl...
Try
http://quickstarts.asp.net/QuickStar...n/default.aspx
and especially "Global and Local resources"...

Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...

---
Patrice

"ThunderMusic" <No*************************@NoSpAm.coma écrit dans le
message de news: ud**************@TK2MSFTNGP02.phx.gbl...
>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



May 11 '07 #3
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...@NoSpAm.comwrote:
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:u3**************@TK2MSFTNGP05.phx.gbl...
Try
http://quickstarts.asp.net/QuickStar...alization/defa...
and especially "Global and Local resources"...
Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...
---
Patrice
"ThunderMusic" <NoSpAmdanlatathotmaildot...@NoSpAm.coma écrit dans le
message denews: udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__******* ***************@TK2MSFTNGP02.phx.gbl...
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 -

May 12 '07 #4
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
<pa************@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
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...@NoSpAm.comwrote:
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:u3**************@TK2MSFTNGP05.phx.gbl...
Try
http://quickstarts.asp.net/QuickStar...alization/defa...
and especially "Global and Local resources"...
Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...
---
Patrice
"ThunderMusic" <NoSpAmdanlatathotmaildot...@NoSpAm.coma écrit dans le
message denews:
udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__******* ***************@TK2MSFTNGP02.phx.gbl...
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 -


May 12 '07 #5
Yes, I also use hyperlinks but it doesn't look like the OP currently does.
Short of a redesign even hidden hyperlinks should quickly fiex the problem
so that the page is always the same.

Not sure what you meant with the second part. For now it looks like to me
that URL rewriting doesn't have anything to do with the current problem.

Hopefull the OP will tell use how the language selection is currently
performed...
---
Patrice
"David" <da*****************@revilloc.REMOVETHIS.coma écrit dans le
message de news: Oy**************@TK2MSFTNGP05.phx.gbl...
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
<pa************@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
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...@NoSpAm.comwrote:
>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:u3**************@TK2MSFTNGP05.phx.gbl...
Try
http://quickstarts.asp.net/QuickStar...alization/defa...
and especially "Global and Local resources"...
Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...
---
Patrice
"ThunderMusic" <NoSpAmdanlatathotmaildot...@NoSpAm.coma écrit dans le
message denews:
udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__******* ***************@TK2MSFTNGP02.phx.gbl...
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 -



May 14 '07 #6
Hidden hyperlinks may not fix the problem if he is not programming for
them...

for example, a linkbutton posts to the same page. You have an onclick
function that is called by the linkbutton. That function will not get called
with a hyperlink unless you are checking for request.querystring and going
to the function based on your querystring. If that is the case, then no need
for the linkbutton. A problem with hyperlinks though is viewstate will not
be carried through. It really has to be a design decision and done quite
early in the process rather than way down the line where it will take a
major re-engineering task to fix.

In an earlier message, he had concerns about url-rewriting and problems with
search spiders not following correctly.

I was just explaining what I have to try and help, though I must admit, none
of my url-rewriting has been thoroughly abused by search robots yet. He had
concerns that url rewrites used a 302 (temporary) redirect (bad). Looking in
my log files, there are no 302s on rewritten pages.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Patrice" <http://www.chez.com/scribe/wrote in message
news:eY**************@TK2MSFTNGP06.phx.gbl...
Yes, I also use hyperlinks but it doesn't look like the OP currently does.
Short of a redesign even hidden hyperlinks should quickly fiex the problem
so that the page is always the same.

Not sure what you meant with the second part. For now it looks like to me
that URL rewriting doesn't have anything to do with the current problem.

Hopefull the OP will tell use how the language selection is currently
performed...
---
Patrice
"David" <da*****************@revilloc.REMOVETHIS.coma écrit dans le
message de news: Oy**************@TK2MSFTNGP05.phx.gbl...
>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
<pa************@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googlegr oups.com...
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...@NoSpAm.comwrote:
>>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:u3**************@TK2MSFTNGP05.phx.gbl...

Try
http://quickstarts.asp.net/QuickStar...alization/defa...
and especially "Global and Local resources"...

Else please clarify what is the problem you have (url rewriting issue,
indexing issue ?)...

---
Patrice

"ThunderMusic" <NoSpAmdanlatathotmaildot...@NoSpAm.coma écrit dans
le
message denews:
udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__****** ****************@TK2MSFTNGP02.phx.gbl...
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 -




May 14 '07 #7
Granted, it may be not enought depending on how it currently works. And yes,
url rewriting is anyway a strictly server side thing so it shouldn't be an
issue in itself (but still can depend on other factors as you said).

IMO we can't do much more without knowing how the OP handles language
selection...

--
Patrice

"David" <da*****************@revilloc.REMOVETHIS.coma écrit dans le
message de news: Ow**************@TK2MSFTNGP05.phx.gbl...
Hidden hyperlinks may not fix the problem if he is not programming for
them...

for example, a linkbutton posts to the same page. You have an onclick
function that is called by the linkbutton. That function will not get
called with a hyperlink unless you are checking for request.querystring
and going to the function based on your querystring. If that is the case,
then no need for the linkbutton. A problem with hyperlinks though is
viewstate will not be carried through. It really has to be a design
decision and done quite early in the process rather than way down the line
where it will take a major re-engineering task to fix.

In an earlier message, he had concerns about url-rewriting and problems
with search spiders not following correctly.

I was just explaining what I have to try and help, though I must admit,
none of my url-rewriting has been thoroughly abused by search robots yet.
He had concerns that url rewrites used a 302 (temporary) redirect (bad).
Looking in my log files, there are no 302s on rewritten pages.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Patrice" <http://www.chez.com/scribe/wrote in message
news:eY**************@TK2MSFTNGP06.phx.gbl...
>Yes, I also use hyperlinks but it doesn't look like the OP currently
does. Short of a redesign even hidden hyperlinks should quickly fiex the
problem so that the page is always the same.

Not sure what you meant with the second part. For now it looks like to me
that URL rewriting doesn't have anything to do with the current problem.

Hopefull the OP will tell use how the language selection is currently
performed...
---
Patrice
"David" <da*****************@revilloc.REMOVETHIS.coma écrit dans le
message de news: Oy**************@TK2MSFTNGP05.phx.gbl...
>>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
<pa************@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googleg roups.com...
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...@NoSpAm.comwrote:
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:u3**************@TK2MSFTNGP05.phx.gbl...

Try
http://quickstarts.asp.net/QuickStar...alization/defa...
and especially "Global and Local resources"...

Else please clarify what is the problem you have (url rewriting
issue,
indexing issue ?)...

---
Patrice

"ThunderMusic" <NoSpAmdanlatathotmaildot...@NoSpAm.coma écrit dans
le
message denews:
udTnsn1kHHA.3__BEGIN_MASK_n#9g02mG7!__...__***** *****************@TK2MSFTNGP02.phx.gbl...
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 -



May 14 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: vishal | last post by:
hi here is vishal. i am creating a site which will have one option for change language. once user selects the language i am storing his reply in session variable. then i want to display the...
22
by: Vincent | last post by:
I would like to develop a site that should be available in several languages, say English, French and German. My question is: how can I suggest browsers of visitors to display the correct language...
39
by: CppNewB | last post by:
I was trying to advocate using Python for an upcoming prototype, so my boss went out to take a look at the documentation and try and get a feel for what the language is all about. First comment;...
0
by: sastwhc | last post by:
sastwhc wrote: > *Hi all > I try change language client side programatically.In my case farsi a > Right to Left Language,the curser direction changed by dir=rtl TAG > changed to correct direction...
7
by: Robert Seacord | last post by:
The CERT/CC has just deployed a new web site dedicated to developing secure coding standards for the C programming language, C++, and eventually other programming language. We have already...
7
by: CAH | last post by:
Hi I need to make at multilanguage language site, and for that I need to identify the users, and register there choice off language. For that i imagine using cookies, since this is the only way...
6
by: ThunderMusic | last post by:
Hi, I'm currently developping a web site (not a web application) with asp.net and would like to use the localization functionalities to avoid doing my pages twice (and maybe eventually, 3 times)....
4
by: edgy | last post by:
Hello, I am a beginner with PHP, and I have made a language switcher on a site that I am looking for your feedback on. First of all, the page is http://www.mankar.ca My question regarding...
0
by: priyammaheshwari | last post by:
Hi There I am developing a site which would be used worldwide,so some of the people in China and Japan want that they should be able to see the site in their respective language.So to change the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.