Php 带问号的Apache mod_重写

Php 带问号的Apache mod_重写,php,apache,.htaccess,mod-rewrite,Php,Apache,.htaccess,Mod Rewrite,我有一个基于PHP的web应用程序,我正在尝试应用Apache的mod_重写 原始URL的格式如下: http://webseite.de/search/What%3F.html 我想把这些转化为: http://webseite.de/index.php?mod=search&mod2=What? 此url已起作用: http://webseite.de/search/What.html 我的.htaccess文件: ? 用于查询字符串。你不能有多个?在url中。所需的url已存

我有一个基于PHP的web应用程序,我正在尝试应用Apache的mod_重写

原始URL的格式如下:

http://webseite.de/search/What%3F.html
我想把这些转化为:

http://webseite.de/index.php?mod=search&mod2=What?
此url已起作用:

http://webseite.de/search/What.html
我的.htaccess文件:


? 用于查询字符串。你不能有多个?在url中。所需的url已存在?所以你需要对另一个进行编码?到%3F,它应该是mod2=什么%3F应该是用户双重编码的主url?web应用程序应该搜索查询“What?”。这些规则对我很有效
RewriteEngine on 
Options +FollowSymlinks
RewriteRule ^([^/]+).html$ index.php?mod=$1
RewriteRule ^(.*)/(.*).html$ index.php?mod=$1&mod2=$2 [NE,B]