0

I have to redirect

http://example.com/2016/12/12/example-post/

to

http://example.com/example-post/

without breaking

http://example.com/images/2016/12/example.jpg

How to do that in Nginx? Thank you!

1 Answers1

0

you can use /%postname% and replace it with current

wassimo
  • 21
  • 1
  • 6
  • 1
    I've already do that, but I need a 301 redirect (claimed by Webmaster Tools) Solved! http://stackoverflow.com/questions/32977170/nginx-redirect-url-to-new-pattern/32981299#32981299 – Matumbu Dec 21 '16 at 22:21