[英]Swedish Characters in .htaccess RewriteRule
I have a problem with .htaccess RewriteRule while using swedish characters (ä,ö.å) 使用瑞典语字符(ä,ö.å)时,.htaccess RewriteRule有问题
i have rule written in my .htaccess file is.. 我在.htaccess文件中写了规则。
Options +FollowSymLinks
RewriteEngine on
Working fine. 工作正常。 when I type
Http://www.mydomain.se/Läga-till
当我输入
Http://www.mydomain.se/Läga-till
RewriteRule ^(.*)-&-(.*)/$ index.php [NC,L]
but it does not work when i write this rule.. 但是当我编写此规则时它不起作用。
RewriteRule ^Läga-till/$ index.php [NC,L]
can anyone help me out resolving this issue??.. 谁能帮我解决这个问题?
its been more than a week but could find the right solution for it yet.. :(' 它已经有一个多星期了,但是可以找到正确的解决方案。
Not sure why the first rule works for the URL that you gave, but the URI looks like this: 不确定为什么第一个规则适用于您提供的URL,但是URI看起来像这样:
Läga-till
And your regular expression matching the URI looks like this: 与URI匹配的正则表达式如下所示:
^Läga-till/$
So there's a trailing slash that doesn't match. 因此,存在一个不匹配的斜杠。 Try changing the regex to:
尝试将正则表达式更改为:
^Läga-till/?$
尝试这个
RewriteRule ^Läga-till/([^/]+)/?$ index.asp?page=om-mig&subpage=$1 [NC,L,NU]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.