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

后端 未结 5 1349
萌比男神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:26

    I don't think Redirect is the right tool for this, as it only matches the path specified. Just use:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^blog/ - [G]
    

提交回复
热议问题