What is the difference on
RewriteRule .* protecao_dos.php [NE,L]
and
RewriteRule ^$ protecao_dos.php [NE,L]
The first one:
RewriteRule .* protecao_dos.php [NE,L]
Will catch a path with anything including empty resource path like http://foo.com/
or http://foo.com/arbitrary/long/path
.
The second one:
RewriteRule ^$ protecao_dos.php [NE,L]
Will catch an empty path only like http://foo.com/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.