PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : حروف مربوط به ریدایرکت [r=301



h4k3r
February 21st, 2017, 16:07
سلام توی ریدایرکت [R=301 ما یه سری حروف داریم

میخواستم مفهوم این حروف رو بدونم

یه منبع کامل در این مورد

https://www.addedbytes.com/articles/for-beginners/url-rewriting-for-beginners/



[R=301,L] - What does L mean?

That means it is the Last rewrite rule and stops looping and/or conflicts.

Basically, if you have a lot of rewrite rules, it'd be better to add the L flag to save Apache from having to keep processing further rules.


[NC,L] - "Flags", that tell Apache how to apply the rule. In this case, we're using two flags. "NC", tells Apache that this rule should be case-insensitive, and "L" tells Apache not to process any more rules if this one is used.

C (chained with next rule)
CO=cookie (set specified cookie)
E=var:value (set environment variable var to value)
F (forbidden - sends a 403 header to the user)
G (gone - no longer exists)
H=handler (set handler)
L (last - stop processing rules)
N (next - continue processing rules)
NC (case insensitive)
NE (do not escape special URL characters in output)
NS (ignore this rule if the request is a subrequest)
P (***** - i.e., apache should grab the remote content specified in the substitution section and return it)
PT (pass through - use when processing URLs with additional handlers, e.g., mod_alias)
R (temporary redirect to new URL)
R=301 (permanent redirect to new URL)
QSA (append query string from request to substituted URL)
S=x (skip next x rules)
T=mime-type (force specified mime type)