One of the most wasteful redirects happens frequently and web
developers are generally not aware of it. It occurs when a trailing
slash (/) is missing from a URL that should otherwise have one. For
example, going to http://astrology.yahoo.com/astrology results in a
301 response containing a redirect to
http://astrology.yahoo.com/astrology/ (notice the added trailing
slash). This is fixed in Apache by using Alias or mod_rewrite, or the
DirectorySlash directive if you're using Apache handlers.
You should fix this by adding the trailing slash to your links, and not by trying to fight with the server to get slashless URLs to load. As hinted at in the preceding quote, you can change Apache's
DirectorySlash directive but...
Typically if a user requests a resource without a trailing slash,
which points to a directory, mod_dir redirects him to the same
resource, but with trailing slash for some good reasons:
- The user is finally requesting the canonical URL of the resource
mod_autoindex works correctly. Since it doesn't emit the path in the link, it would point to the wrong path.
- DirectoryIndex will be evaluated only for directories requested with trailing slash.
- Relative URL references inside html pages will work correctly.
... you probably don't want to.
I don't know how your HTML is generated but presumably, since this is a WordPress site, it is generated by plugins or in your theme template files. It should be easy enough to edit those but without more code I'd just be guessing.