I'm making redirects of products from old to new category.
I've managed to make it work with following rule:
rewrite ^/old-category/(.*) /new-category/$1;
But I want to know when should I use "end line" sign $ and what's the difference with it or without it in my case. For example:
rewrite ^/old-category/(.*)$ /new-category/$1;
Also I want to redirect users if they simply write old category name (without products), should I create a new rule just for category redirect or I can edit the current rule above to work in both cases.
Thank you for your answers in advance.