apache - htaccess to redirect to dead links to 404 -


we migrated 1 domain another. redirected valid urls counterpart on new site. however, there quite few links valid on old domain don't exist on new domain. (e.g. pages/links outdated didn't migrate them)

for example, had blog component on old domain generated lot of dynamic links /blog/category/abc , /blog/tag/xyz. no longer have blog component on new domain.

using htaccess, best way make sure google , other se's correctly aware these pages/links no longer exist?

the correct http status code send 410 gone code. quote rfc2616 (emphasis mine):

the requested resource no longer available @ server , no forwarding address known. condition expected considered permanent. clients link editing capabilities should delete references request-uri after user approval. if server not know, or has no facility determine, whether or not condition permanent, status code 404 (not found) should used instead. response cacheable unless indicated otherwise.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -