In my wordpress website :
I need to modify permalink for the custom post type Rivista Quadrimestrale.
Now the permalink is :
https://www.sicilianmarketing.it/diritticomparati/rivista-trimestrale/%postname%
I need it to be
https://www.sicilianmarketing.it/diritticomparati/%postname%
Please help in this case.
2
Answers
You can do it in apache or nginx if needed. You need to give the information to the browser by giving a 301 status code and the new link if called on the old.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
In your
functions.php
try adding