#2 Apr 25, 2019 00:45
I used to see some differences between local and web server regarding the htaccess, then I realized that depending on whether we change or not some settings available on the cPanel (password protect folders, activate SSL, ...) or even the domain panel (redirect settings etc..) these can generated some output to the current htaccess, which is normal, and usually don't cause issues.
I would suggest you to compare side by side to look for the differences, and share it here if possible. In my case I remember having some lines added that relate to folders starting with dot "."
The warning here is that we have to be careful when uploading a local htaccess to the web server, as we can potentially be overwriting the current settings and doing so disabling some settings that we previously activated (please someone correct me if I'm wrong).