Redirects after permalink change

I am using the permalink settings %category%%post_id%.And all URLs are indexed by Google using the above.Now I want t

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 badge
Add a comment  | 

1 Answer 1

Reset to default 0

It 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

相关推荐

  • Redirects after permalink change

    I am using the permalink settings %category%%post_id%.And all URLs are indexed by Google using the above.Now I want t

    1天前
    70

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信