English 中文(简体)
以接受为根据
原标题:Redirect based on Accept-Language

我需要遵守网站浏览器的语言偏好清单。 辅助语言为英文和法文。 例如:http://accept_language=“jp-JP;fr;en-US;en”向一个称为/French/的名录发送。 我怎么能够用在我的查阅档案中重新制定规则呢?

最佳回答

我不想使用 mo,而是用更强大的语言。 由于Accept-Language是加权值清单(见quality Value),而且识别标志之一的出现并不意味着它更喜欢另一个价值(特别是根本不能接受)。

正如已经说过的那样,使用比改用更强大的语言,把价值清单同起来,并找到最合适的选择和现有选择。

问题回答

暂无回答




相关问题
URL rewrite in IIS6 - Third party tools

I have collected the following api/sdk/whatever which provide modules for doing url rewriting in IIS 5/6/7. Some are free-open source and some require $. I haven t tried any of them. I would like to ...

Rewrite spring-security redirect URLs

I m trying to get Tuckey UrlRewriteFilter to tidy up URLs for my webapp. One problem I ve got is that when spring-security notices that an anonymous user is trying to access a protected resource it ...

ASP.NET Friendly URLs

In my research, I found 2 ways to do them. Both required modifications to the Application_BeginRequest procedure in the Global.Asax, where you would run your code to do the actual URL mapping (mine ...

Could I get by HttpModule the URL that contains * before?

My web-site is working under ASP.NET 3.5, IIS7, Integrated pipiline mode. My HttpModule is getting request to all resources, including URLs like this: http://my-site.com/address And I would support *...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

URL Mod-Rewrite

I currently have a working URL: http://example.com/security-services.php?service=fixed-camera-surveillance and then I have PHP say, $_REQUEST[ service ] to do some stuff... But I d like to ...

热门标签