User Tools

Site Tools


remove_url_trailing_space

This is an old revision of the document!


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.1485873958.txt.gz · Last modified: (external edit)