1

我曾经有一个文件名中有一些关键字的php网站,像这样

domain.com/?keyword-one,23
domain.com/?another-keyword,43
domain.com/?one-more-keyword,23
等等

问题是我现在有一个 index.html 文件,因此上面的页面仍然有效吗?在第一个 / 之后,因为服务器将这些文件附加为 domain.com/index.html?keyword-one,23

有什么方法可以显示错误 410 使用 htaccess 消失了吗?

我使用了 RewriteRule ^index.html$ - [R=404,L,NC] 但它不起作用。

4

1 回答 1

0

没关系,我让它工作了。

重写规则 ^/?$ - [R=410,L,NC]

于 2013-02-11T21:04:19.887 回答