User Tools

Site Tools


remove_url_trailing_space

Source

When someone is using a link on a forum or somewhere else using a trailing space, there can be a problem in the url returning a 404 error because the server sees a %20 at the end

for example ;

http://wiki.ssm2017.com

here is the .htaccess directive to correct that

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /[^%?\ ]*\%
RewriteRule ^. / [R=301,L]

remove_url_trailing_space.txt · Last modified: by 127.0.0.1