I am using the permalink settings /%category%/%post_id%/
.
And all URLs are indexed by Google using the above.
Now I want to change the permalink to /%postname%/
.
But this will make all Google search results going to the 404 page. How can I redirect old URLss to the new ones?
I am using the permalink settings /%category%/%post_id%/
.
And all URLs are indexed by Google using the above.
Now I want to change the permalink to /%postname%/
.
But this will make all Google search results going to the 404 page. How can I redirect old URLss to the new ones?
Share Improve this question edited Dec 10, 2019 at 9:55 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Dec 10, 2019 at 9:44 RaiedRaied 111 bronze badge1 Answer
Reset to default 0It depends on your server. If you're on an Apache server, you could use the .htaccess file. If you're on NGINX, there is a .conf file. Your web host may (or may not) be able to help you with this.
Or, you could use a plugin. There are many redirection plugins available - you may want to try one out on a staging site to see how well it works, and use an HTTP Header Check (there are free ones online, where you paste in a URL and it tells you what response the server gave - such as 404, 301, 200) to verify that they're returning the headers you want them to, then copy everything over to the live site.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744919912a4601068.html
评论列表(0条)