Forum Moderators: phranque
I was wondering if [R=301,N] will send the appropriate headers back to Search Engines. Or if it would make a difference to do [R=301,L].
I'm not sure if there is a difference between the 2 methods for my circumstance, but if there was I would assume the [R=301,N] would be most efficient.
Please let me know your thoughts. Thank you.
Can't answer your question, though, without seeing your code or knowing how you tested. Many "tools" for viewing headers show only the final step, which would of course give a 200-OK. For step-by-step viewing of headers, I suggest the "Live HTTP Headers" extension for Firefox/Mozilla browsers. It will show the client and server headers for each and every HTTP transaction.
Jim
Ok, so that answers my question that indeed, in either case [R=301,N] or [R=301,L] the 301 status gets sent in the exact same way.
So, I guess, since you said that .htaccess is recursive by nature, then it doesn't really matter if you use [R=301,L] or [R=301,N].
Thanks for your help!
[R=301,L] will invoke an immediate 301 Redirect (as documented), the client will then re-request the document at the new (redirected-to) URL, and then your internal rewrite will be applied.
Jim