wordpress - Convert these rewrite apache rules to nginx -
wordpress - Convert these rewrite apache rules to nginx -
in wordpress, changed posts permalinks structure. in order don't 404 erros old links, redirect old permalinks new permalinks. according this, next code must added in .htacess can redirect working old posts links new posts link:
redirectmatch 301 ^/([0-9]{4})/([0-9]{2})/([^/]+).html$ http://myurl.com/$3 that's good, however, don't utilize apache – utilize nginx. how can convert rules nginx? i've tried apache nginx online converter, no success.
thanks!
i believe want. "permanent" 301 according this page.
rewrite "^/([0-9]{4})/([0-9]{2})/([^/]+).html$" http://myurl.com/$3 permanent; wordpress apache .htaccess nginx
Comments
Post a Comment