Trailing %20 white space in URLs producing 404 errors in Codeigniter
问题 Our URLs with a URL encoded trailing white space ( %20 ) are producing a 404 error. The application is run on Codeigniter on Apache. /directory/page%20 will return a 404 error /directory/page will return a 200 OK How can I route all URLs with a trailing %20 to the intended URL? 回答1: The problem is that some third party websites are linking to us with trailing white space in the HREF In that case you can add something like the following at the top of your .htaccess file to redirect