multi-language - how to redirect w3c validator to /en/default.aspx Options
domagoj.barisic
Posted: Thursday, October 23, 2008 2:47:10 PM

Rank: Newbie

Joined: 10/23/2008
Posts: 1
Location: Croatia
Hello,

we have problems with w3c validation & googlebot with our multi-lang. site. When user hit our page he is redirected to his lang. (e.g. "www.oursite.com/en/default.aspx" ) but when w3c validator try to validate, validator isn't redirected to "www.oursite.com/en/default.aspx", server response is just empty document.

I use Fiddler to debug this issue and find that Fiddler also isn't redirected to lang. subdir. ("/en/default.aspx") and server return empty document.

When I add "Accept-Language: en" to Request Header in Fiddler, I got 302 redirect to "/en/default.aspx".

How can we redirect w3c validator, googlebot, etc. (without "Accept-Language: en" in header) to "/en/default.aspx"

I tried to add "<case match="W3C_Validator*"> tagWriter = System.Web.UI.HtmlTextWriter W3CDomVersion = 1.0 </case>" to /config/BrowserCaps.config but no help at all.

useDomainPrefixes is set to "false", and we are using Manage hostnames...

I think problem is in urlrewriter but I didn't find where it controls "Accept-Language".

Any ideas?

Thanks,

Domagoj Barisic
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.