.htaccess some facts and rules
Common command suffixes
At the end of many lines you will see a suffix within square brackets. These instructions modify the main command of that line.[301] = permanent redirect[302] = temporary redirect[NC] = no case (ignore upper / lower case)[L] = last - if this direction is met, then quitA redirect should always be a 301, Permanent, and never a 302, Temporary.
I cannot think of any case in which the use of a 302 is valid. It should never be used for any purpose on a server, for anything. Even if you know that it will be changed tomorrow - don’t use a 302. There are a bunch of search engine related issues here. Unfortunately, a server may default to issuing a 302 if you don’t specify a 301 permanent redirect; therefore you should always specify a 301.
A major problem here is that hosts in general(a) do not know that a server defaults to 302 if you don’t specify otherwise(b) Their actions in many cases get you an automatic search penalty.These modifiers can be written in upper or lower case, it doesn’t matter.You can use [NC] or [nc], it’s the same thing. However, it may be clearer in upper case.[NC] means ‘no case’, or ignore the use of upper / lower case in this command line. [L] - last - is used to terminate a sequence.
Related posts:







