duanboxue3422 2012-08-17 09:13
浏览 36

.htaccess RewriteRule中的瑞典字符

I have a problem with .htaccess RewriteRule while using swedish characters (ä,ö.å)

i have rule written in my .htaccess file is..

Options +FollowSymLinks
RewriteEngine on

Working fine. when I type 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.. :('

  • 写回答

2条回答 默认 最新

  • duanang58939 2012-08-17 09:27
    关注

    Not sure why the first rule works for the URL that you gave, but the URI looks like this:

    Läga-till
    

    And your regular expression matching the URI looks like this:

    ^Läga-till/$
    

    So there's a trailing slash that doesn't match. Try changing the regex to:

    ^Läga-till/?$
    
    评论

报告相同问题?

悬赏问题

  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统
  • ¥188 需要修改一个工具,懂得汇编的人来。
  • ¥15 livecharts wpf piechart 属性
  • ¥20 数学建模,尽量用matlab回答,论文格式
  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证