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.. :('
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/?$
尝试这个
RewriteRule ^Läga-till/([^/]+)/?$ index.asp?page=om-mig&subpage=$1 [NC,L,NU]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.