Community & Support

Modify htaccess to allow for Webalizer

When I try to access Webalizer on my website (not from within Drupal) I get a 'Permission denied' message. My webhost tells me to rename the .htaccess file, but since this is a Drupal file I am not so keen to do it. So:
* Can I simply rename that file without losing functionality
* Or should I put a line in it allowing for Webalizer - if so how?

Many thanks

Theo Richel

Comments

.htaccess not required

I don't think the .htaccess file is required for Drupal.

I use it to enable mod_rewrite on my hosting, but if mod_rewrite is already enabled you don't need it. Unless you have some other directives in there.

Maybe paste your .htaccess file contents here so we can have a look?

Thank you

I renamed htaccess and Webalizer now runs (though I still have to figure out wheter it can handle multisite). As regards the htaccess file, it is the regular Drupal 5 .htaccess. I never modified it. My sites seem to function fine as well.

I was a bit too fast

When I disable .htaccess clean url's are also disabled, and I do like to use them. Is there a solution for this?

Clean URL needs mod_rewrite

The clean URLs function needs mod_rewrite. That is the exact same reason why I use .htaccess.

Try to figure out why webalizer needs to change your htaccess, maybe you need settings that can be merged in your current .htaccess.

Another option is to activate mod_rewrite in your apache configuration instead. But that only works if you have access to that configuration.

Thanks. According to my host

I should be able to modify that .htaccess file to allow for webalizer to work. However, they do not provide support for 3rd party applications.

Well I could try to ask it to the folks at Webalizer, but there is a chance that they consider this a Drupal problem. Any ideas?

nobody click here