Hi guys, you can help me here, I have a little problem here to use htaccess to remove all 20% in my url and replace it with a hyphen. I manage to get rid of the remaining 20% โโbetween the words Acer, Liquid, S1, S510
here is my url / localhost / gadgets / product / Acer-Liquid-S1-S510% 20Mobile
As you can see, in the last part there is one% 20, how can I delete it
And here is my htaccess
Options +FollowSymLinks -MultiViews RewriteEngine On RewriteBase /gadgets/ Options -Indexes RewriteRule ^brand/([a-zA-Z]+)$ brand.php?id=$1 RewriteRule ^product/([A-Za-z0-9-]+)/?$ product.php?product_name=$1-$2 [NC,L] RewriteRule ^(.*/|)[\s%20]+(.+)$ $1$2 [L] RewriteRule ^(.+?)[\s%20]+(/.*|)$ $1$2 [L] RewriteRule ^([^\s%20]*)(?:\s|%20)+(.*)$ $1-$2 [L,R] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php
Thanks in advance guys
source share