I have an hosting account and I am not able to access the log for Apache Rewrite module. I heard that is possible to use .htaccess to set the folder for the log to a local folder. I tried and Apache complained that "RewriteLog not allowed here". What can be done? I would like an example, please.
I am afraid that it is not possible - that directive must be set globally at server level or in the VirtualHost-container for the hostname. It is not possible to set ut using the .htaccess override rules If you ask nicely perhaps your host can include that for you as a custom setup?
Here is the article I'm talking about: http://perishablepress.com/press/2006/11/28/roll-your-own-apache-rewrite-log/ What do you think about what the author suggests? (there is a "via .htaccess" section)
As kers has pointed out, it's not possible unfortunately. Why do you need to log? If your rewrites aren't working, have you tried them out on your local development server where you do have root access? EDIT: The author of that article is wrong. See the documentation to check:
I run Windows, but my host runs Linux. I run a version of Apache newer than my host's. There are also others reasons for me to want to see the logs on the deployment server, not on the testing server. It's not always possible for me to replicate locally the deployment server's behaviour.
As already mentioned, unless your host is willing to set up rewrite logging especially for you, you can't use it on your shared hosting. You can however use it locally, and unless you're using extremely complex rewriting, the difference in environment should be insignificant. Regardless, surely that's better than nothing...