S
S
sasha2014-10-05 17:41:55
PHP
sasha, 2014-10-05 17:41:55

Why doesn't the [L] flag in htaccess work?

there is htaccess which has 4 lines

RewriteEngine On
RewriteBase /admin/
RewriteRule ^api(.*) index\.php$1 [L,QSA]
RewriteRule .* n/index.html [L]

And in general, an incomprehensible situation. If you leave it as is, then all requests to the server (including requests like /admin/api?lalal=hahah) will be intercepted on index.html, and if you comment out the second rule, the necessary urls will be intercepted on the first rule. It seems that the L flag stupidly does not work. Or am I doing something wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sasha, 2014-10-05
@madmages

next time i will google first ;)
stackoverflow.com/questions/6797998/rewriterule-la...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question