最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

google xml sitemaps - change permalink structure with htaccess without SEO impact

programmeradmin2浏览0评论

I can read a lot of questions about this topic but with different interpretations. I'm going to change my permalink structure

from /%year%/%monthnum%/%day%/%postname%/ to /%postname%/

So new posts will be natively in the new url format, about old posts I'm going to add just one row in the .htaccess file, following the suggestion coming from yoast

RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/(?!page/)(.+)$ /$4

After few test in another small website, it seems to work.

My questions are:

  1. Is finally the "best way" to do it in terms of avoiding SEO impact? (I see a lot of people using redirect plugin..someone says that wordpress does it automatically after structure changes..someone add in htaccess one row for each link even if the structure is standard..)

  2. About sitemap.xml, I'm using a plugin to generate it, so basically after changing permalink structure also the sitemap content (just for the post) will be completely updated. So in theory as soon as the sitemap will be processed by Gooogle, Google will see a new set of url. Could it affect current post google ranks? Any suggestions?

Sorry if there are similar question, but as you can imagine it would be very risk change. Thanks!!!

发布评论

评论列表(0)

  1. 暂无评论