使用UTF 8编码查询字符串的htaccess RewriteRule问题

时间:2016-03-03 14:09:37

标签: php .htaccess mod-rewrite prestashop

我们有一个基于Prestashop的电子商务网站,并启用了友好的网址。

带有这样的查询字符串的url工作正常。 http://www.mywebsite.com/en/validation?response_text=test

不验证带有UTF 8编码字符串的查询字符串并抛出404页面错误。 http://www.mywebsite.com/en/validation?response_text=PD94bWwgdmVyc2lvbj0iMS4mVxdWVzdCB4%0AbWxuczp4PSJod

如何允许UTF 8编码的字符串

htaccess是



RewriteEngine on

RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api$ api/ [L]

RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

 RewriteCond %{REQUEST_FILENAME} -s [OR]
 RewriteCond %{REQUEST_FILENAME} -l [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^.*$ - [NC,L]
 RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  </IfModule>

 AddType application/vnd.ms-fontobject .eot
 AddType font/ttf .ttf
 AddType font/otf .otf
 AddType application/x-font-woff .woff
 <IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|svg)$">
	Header add Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
&#13;
&#13;
&#13;

感谢您的帮助

0 个答案:

没有答案