Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-l or -L flag is not supported #24

Open
proginter opened this issue Jan 3, 2023 · 2 comments
Open

-l or -L flag is not supported #24

proginter opened this issue Jan 3, 2023 · 2 comments

Comments

@proginter
Copy link

Hi,

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

Thank you!

@rkaiser0324
Copy link
Contributor

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

@proginter
Copy link
Author

proginter commented Jan 3, 2023

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.

rkaiser0324 added a commit to rkaiser0324/htaccess-for-nginx that referenced this issue Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants