However, what is the correct way to do that if I want to use the same htaccess file locally as well as on the remote server.The reason I'd like to use the same file is to be able to update all files/synchronize all files without having to think about which file to update and which not
Something like this?
Code: Select all
# deny all except those indicated here
<Limit GET POST PUT>
order deny,allow
deny from all
allow from 127.0.0.1
allow from localhost
allow from 12.345.678.987
</Limit>