.htaccess question. What does [L] mean and how should i best use it?

So i have the following .htaccess file, but i can’t remember what [L] means and if I’m using it properly?

Is there a reference sheet for these terms anywhere? [L], [NC]
i’ve only found tutorials that use them but don’t really explain them


// redirect example.com to www.example.com

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]



// redirect www.example.php?id=5 to www.example.php/blog/5

RewriteCond %{QUERY_STRING} id=([0-9]+)
RewriteRule ^post\\.php$ http://www.example.com/blog/$1? [R=301,L]




// index.php goes to / 

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.example.com/$1 [R=301,L]

soy,

So, you didn’t read my tutorial (linked from my signature), eh? :nono: It’s got a list of the most common flags. The “front end of the horse,” however, is Apache.org’s mod_rewrite page.

BTW, the Last flag terminates a mod_rewrite BLOCK as ; does for a single PHP statement or } for a block statement. You have used it correctly. :tup:

Regards,

DK