I'm trying to remove a percent sign from the URL using .htaccess. When I add % on end of the URL I get request code 400.
Here is my .htaccess code:
# NON-WWW HTTPS
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
### NO SLASH ON URL END
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
### FORCE TO LOAD EXISTING FILES
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
### URL AS MAIN STRING
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
I found some similary solution here htaccess to escape percent (%) from URL but its not work in my case.
When I add line in the end:
RewriteRule .* index.php?url=$1 [PT,B]
.htaccess didn't load any external files like CSS & images.