HTACCESS - Using spaces in a URL

I have to (want;) use spaces in the urls. I am doing cute URLs through htaccess:

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

But when I go to StorageList.php / Point / 21 / Ford Fiesta, my script does not receive variable data.

+4
source share
1 answer

Change the regex to allow spaces:

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

Source: https://habr.com/ru/post/1502582/