HTACCESS - 在 URL 中使用空格


HTACCESS - use spaces in URL

我必须(想要;)在网址中使用空格。我通过htaccess制作"可爱"的URL:

RewriteRule ^StorageList.php/([a-zA-Z]+)/([0-9]+)/([0-9a-zA-Z%+-]+)$ StorageList.php?type=$1&users_id=$2&parts_section=$3 [L]

但是当我转到 StorageList.php/Point/21/Ford Fiesta 时,我的脚本不会获得变量数据。

更改正则表达式以允许空格:

RewriteRule ^StorageList'.php/([a-z]+)/([0-9]+)/(.+?)/?$ StorageList.php?type=$1&users_id=$2&parts_section=$3 [L,NC,NE,QSA]