Jump to content

Debugging .htaccess


sylvest
 Share

Recommended Posts

Hi,

 

I'm just starting to get to grips with the rewriting engine. I'm getting server "500" errors. Where does the rewriting engine write its log messages? Can I change this? Can I change the debug level? It doesn't seem to accept RewriteLog or RewriteLogLevel commands in the .htaccess file.

 

Can you suggest any otehr ways of finding out what's happening while it's processing my .htaccess file?

 

Thanks - Rowan

Link to comment
Share on other sites

It doesn't seem to accept RewriteLog or RewriteLogLevel commands in the .htaccess file.

 

Can you suggest any otehr ways of finding out what's happening while it's processing my .htaccess file?

 

These directives are not allowed in .htaccess, please see httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog . Most errors will show up in your cPanel under Logs > Error Log, if you are not able to find an issue there you will need to open a ticket.

Link to comment
Share on other sites

The times I have experienced 500 internal server errors is when I have syntax errors within the .htaccess file itself.

 

If you want, send me the .htaccess file you are using and I will see if I can work out what is wrong. Not saying I am an expert, but I do work with them on a daily basis at work.

Link to comment
Share on other sites

The times I have experienced 500 internal server errors is when I have syntax errors within the .htaccess file itself.

 

If you want, send me the .htaccess file you are using and I will see if I can work out what is wrong. Not saying I am an expert, but I do work with them on a daily basis at work.

That's a fine offer, thanks. I may do this if I get desperate, but a better solution would be for me to have the tools needed to debug these issues myself. I'm beginning to have a bit of success by adding some rewrite rules to report the values of variables etc. in the returned headers. Very tedious but better than no visibility at all...

 

For the moment I'm struggling on with trying to understand how all this works and get it right...

 

Rowan

Link to comment
Share on other sites

but a better solution would be for me to have the tools needed to debug these issues myself.

 

Unfortunately that type of access is not provided in a shared environment as it just results in problems for other users.

 

If you continue to have issues, feel free to open a ticket with the help desk. Short of trying to use htaccess to host more than one site, which is a TOS violation, we will gladly assist with any rewrite issues.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...