I have redirection from example.com/blog
:
- -->
www.example.com/blog
(making site withwww
prefix, using.htaccess
) - -->
www.example.com/blog/
(to end links with slash/
, because of WordPress behaviour. Not-htaccess)
However, it takes about 1 second to perform that:
How can I make it faster?
http://www.example.com/blog/
(including the trailing slash)?.htaccess
file. Presumably, the trailing slash is being appended by WordPress (as you suggest), which would explain the second 735ms delay? The redirect to append the slash should certainly be moved to the.htaccess
file, as Stephen suggests, to avoid any additional delay. You only need one redirect - for both actions. (Just to clarify, you are presumably already linking to the canonical URL - so these redirects are only dealing with edge cases?)