1

有人可以帮我获得正确的 .htaccess 规则:

重定向这个特定的 ID url:

http://www.domain.com/watch.php?id=00000000001

到我的 404 错误页面:

http://www.domain.com/404/
4

1 回答 1

0

DOCUMENT_ROOT/.htaccess在您的文件中使用此规则:

RewriteEngine On

RewriteCond %{QUERY_STRING} ^id=00000000001$ [NC]
RewriteRule ^watch\.php$ /404/? [NC,L,R=301]
于 2014-01-24T16:38:11.757 回答