Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Url htaccess重写规则中的多语言_Url_Url Rewriting - Fatal编程技术网

Url htaccess重写规则中的多语言

Url htaccess重写规则中的多语言,url,url-rewriting,Url,Url Rewriting,my htaccess中的此重写规则工作正常: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+?/)?([^/]+).html$ /$1content.php?page=$2&lang=en [L] RewriteCond %{THE_REQ

my htaccess中的此重写规则工作正常:

Options +FollowSymLinks
RewriteEngine On 
RewriteBase / 

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+?/)?([^/]+).html$ /$1content.php?page=$2&lang=en [L] 
RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ (/.*?)?/content.php\?page=([^&\ ]+) 
RewriteRule ^(.+?/)?content.php$ /$2%3.html? [L,R=301]
问题:我喜欢使用另一种语言。在第一条规则的末尾,它说&lang=en我需要做什么才能使荷兰语也起作用&lang=nl