I'm trying to add a missing trailing backslash while avoiding a redirect. That is, when the URL http://jackson.io/ip is received with no trailing slash, the server responds with a tiny HTML redirect page that says Moved Permanently to an address with the trailing slash. But the user never sees it because the browser immediately sends a new request for the new page. But this particular URL, and probably some others like it, are not for browsers. They are for curl and wget to use in scripts to grab a tiny piece of information. The redirect is inconvenient. I would like the server to immediately send the right thing with no redirect. I put this in my .htaccess file, but it did not change the behaviour at all. Note that I have the rewrite engine turned on and other rewrite rules that do work. RewriteRule ^/ip$ /ip/ [L] Code (markup): I suspect the hosting company has rewrite rule in the top-level configuration file that gets executed before it even reads my .htaccess file, because I tried redirecting it to something totally different and it made no difference. Is there any way to get an immediate correct response with no redirect? If it has to be done in the configuration file, I want to at least know what I'm asking for before I ask for it.