Multiple 301 Redirect For Multiple Pages or URL

后端 未结 2 448
失恋的感觉
失恋的感觉 2020-12-21 13:23

I am redesigning my store and so the old structure has been changed with the new structure. So trying to redirect all old products with the new.

I have more than 20-

2条回答
  •  爱一瞬间的悲伤
    2020-12-21 13:46

    If you have access to the vhost or server config, you can setup a rewrite map, though in reality, it's probably marginally faster than just having a ton of redirects. The redirects that you have in your htaccess file are cached, so as long as the htaccess file isn't modified, the directives don't need to be re-read.

    There's a very detailed tutorial for how to use RewriteMap and the many various mappings you can use with it.

提交回复
热议问题