On my localhost I have enabled htaccess evaluation in apache2.conf and now I keep getting 500 (Internal Server Error)
.
I think I have some faulty .htaccess files that not being evaluated caused no issues before, but now are causing the error. I used find /var/www/ -name ".htaccess" -print
to find the files, but they are too many.
For now, I would like to rename ALL .htaccess
files to old.htaccess
wherever they are. Using: rename .htaccess old.htaccess
results in this error in terminal:
syntax error at (eval 1) line 1, near "."
.
Wrapping the filenames like rename ".htaccess" "old.htaccess"
produces the same error.
What is the correct command to use.