I would like to 410 an entire directory - I deleted my blog

后端 未结 5 1347
萌比男神i
萌比男神i 2021-02-13 18:46

I had a folder called blog on my site. I deleted it all permanently. I would like to 410 it. How do i 410 an entire folder?

e.g. my site looked like this



        
5条回答
  •  心在旅途
    2021-02-13 19:30

    You can set a rewrite rule in .htaccess to redirect all URLs containing the dead folder "blog" to a custom "Does not exist" error page or whatever. If you want the actual code then I would recommend reading guide-url-rewriting to help you figure this out.

提交回复
热议问题