Saturday, September 3, 2022
HomeWordPress DevelopmentAltering to totally different publish sort maintains the redirection?

Altering to totally different publish sort maintains the redirection?


I take advantage of Put up Sort Switcher to change a few of my weblog publish sort from ‘publish’ to ‘docs’ ( a customized publish sort), thus the URL is modified from /weblog/* to /docs/*. I notice that the unique publish at /weblog/* ( eg: /weblog/someinfo) is robotically (301) redirect to /docs/* ( eg: from /weblog/someinfo to /docs/someinfo).

Altering the publish sort from ‘publish’ to ‘web page’ additionally has the identical impact.

I assumed that that is properly defined by the WordPress creates redirect from previous URL after altering slug query. So I take advantage of SELECT * FROM wp_postmeta the place meta_key = "_wp_old_slug" to substantiate that the redirection is certainly saved there. However to my big shock, I am unable to discover something that has something to do with the above redirection.

( If alternatively, I simply change the slug manually and never altering the Put up Sort, like altering the url from /weblog/someinfo to /weblog/someinfo-2, then I’d see one thing at meta_value column, and therefore I can relaxation guarantee that the redirection is actual and everlasting).

This creates a confusion for me. The place the redirection info is saved? Is the redirection everlasting if I alter Put up Sort? ( ie: /weblog/someinfo will at all times be 301 redirect to /docs/someinfo)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments