2012-08-17 99 views
1

我在使用瑞典字符(A,ö.å)瑞典人物

我已經寫在我的.htaccess文件是規則..

Options +FollowSymLinks 
RewriteEngine on 
具有的.htaccess重寫規則有問題

工作正常。當我輸入Http://www.mydomain.se/Läga-till

RewriteRule ^(.*)-&-(.*)/$ index.php [NC,L] 

但是當我寫這條規則不工作..

RewriteRule ^Läga-till/$ index.php [NC,L] 

誰能幫我解決這個問題?..

其已經超過('

+0

你得到任何錯誤或不給它找不到網頁? – Codler 2012-08-17 09:30:08

回答

1

不知道爲什麼第一條規則適用於您提供的URL,但URI看起來像這樣:

Läga-till 

而且你的正則表達式匹配的URI是這樣的:

^Läga-till/$ 

因此,有不匹配尾部斜槓。嘗試改變正則表達式:

^Läga-till/?$ 
0

試試這個

RewriteRule ^Läga-till/([^/]+)/?$ index.asp?page=om-mig&subpage=$1 [NC,L,NU]