htaccess-for-nginx icon indicating copy to clipboard operation
htaccess-for-nginx copied to clipboard

-l or -L flag is not supported

Open proginter opened this issue 2 years ago • 2 comments

Hi,

The script is not supporting -l and -L flags of symlinks detection. Can you please add it?

Thank you!

proginter avatar Jan 03 '23 12:01 proginter

@proginter please include a sample .htaccess file and describe the behavior you expect to see.

rkaiser0324 avatar Jan 03 '23 18:01 rkaiser0324

I am getting an error it not supported.

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]

https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html

-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.

-L Is symbolic link, bash convention. See -l.

proginter avatar Jan 03 '23 19:01 proginter