A
A
Alexander2019-03-06 05:50:56
htaccess
Alexander, 2019-03-06 05:50:56

How to uncomment these lines in .htaccess?

# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
# RewriteRule /\.git / [F,L]
# RewriteRule ^composer\.(lock|json)$ / [F,L]
# RewriteRule ^config.php$ / [F,L]
# RewriteRule ^flarum$ / [ F,L]
# RewriteRule ^storage/(.*)?$ / [F,L]
# RewriteRule ^vendor/(.*)?$ / [F,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2019-03-06
@Alkir000

# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
RewriteRule /\.git / [F,L]
RewriteRule ^composer\.(lock|json)$ / [F,L]
RewriteRule ^config.php$ / [F,L]
RewriteRule ^flarum$ / [F,L]
RewriteRule ^storage/(.*)?$ / [F,L]
RewriteRule ^vendor/(.*)?$ / [F,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question