I have an issue on getting mod_rewrite specific log. I found this on a website and with help from a friend I managed to get this to run in Windows Server Powershell. Below is the command line:
Get-content -Path D:/wamp64/xxx -wait -tail 10 | select-string -pattern "\[rewrite:"
And my issue now is which file I need to get the content from to get the redirection logs? httpd.conf? .htaccess? Do I need to change anything else? I am sure that I need to point it to the correct path/file but I'm not sure which file to specified as it does not mention in here. I've also tried to create custom logs before but failed and causing the website to be down(which might be because of apache version? my apache is version 2.4.37)
Please help me and TIA! Kindly drop a message here you need anything else.