- This topic has 5 replies, 3 voices, and was last updated 8 years, 7 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I see that is not an automatic redirect when you change the category url. How i can set a 301 from old url to new url?
There is no alternative to this?
Well, you can do the redirect in code or you can also do it in .htaccess or .conf for nginx so the redirect occurs before hitting WP if you don't want a plugin.
How can i do this in code? Because i don't have access on the hosting...
Honestly, you'd probably be best to use a good solid plugin for redirects. It keeps things in a standard place and easy to adjust / apply them without having to remember they are in code or .htaccess / .conf files.
Yoast SEO Plugin does them well especially as it will detect permalink changes and ask if you'd like to apply 301s.
Another useful one is redirection https://wordpress.org/plugins/redirection/ which is great for people on Apache as it will write the .htaccess rules for you if you so desire, or apply them at the WordPress level.
There are many others as well. We use Yoast WP SEO Permium on all our client sites and often are on nginx based hosting so it works very well for our needs.
© 2024 WPEngine, Inc.