문제

Can someone help me to get the correct .htaccess rules for:

Redirect this specific ID url:

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

to my 404 error page:

http://www.domain.com/404/
도움이 되었습니까?

해결책

Use this rule in your DOCUMENT_ROOT/.htaccess file:

RewriteEngine On

RewriteCond %{QUERY_STRING} ^id=00000000001$ [NC]
RewriteRule ^watch\.php$ /404/? [NC,L,R=301]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top