1

What is meaning of "-l" tag?

For example:

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]

Thanks

Mesut
  • 1,845
  • 4
  • 24
  • 32

1 Answers1

1

The documentation for the RewriteCond directive is quite clear:

'-l' (is symbolic link)
Treats the TestString as a pathname and tests whether or not it exists, and is a symbolic link. May also use the bash convention of -L or -h if there's a possibility of confusion such as when using the -lt or -le tests.

Álvaro González
  • 142,137
  • 41
  • 261
  • 360
  • What is iis web.config equalivant of this? Also, I'm trubbling to understand "symbolic link". Have you any additional links to documentations? – Mesut Dec 10 '13 at 15:52
  • Symlinks are extremely rare on Windows—you don't even know what they are. Why would you want IIS to test for them? – Álvaro González Dec 10 '13 at 16:23
  • because, I'm converting a .htaccess file from linux to windows format. – Mesut Dec 10 '13 at 18:46