开发者

RewriteLog and RewriteLogLevel in MAMP

I need to set my RewriteLogLevel in MAMP to figure out some mod_rewrite problems.

I put the below lines in my httpd.conf and开发者_开发百科 my local .htaccess file, but I am not finding a output log. How do I set this up correctly?

RewriteLogLevel 9

RewriteLog "rewrite.log"


Try using a full path like /var/log/httpd/rewrite.log.

Also make sure you have mod_rewrite turned on.


Apache generally doesn't enable mod_rewrite by default, so you may need to add more entries to your httpd.conf file.

For instance, did you put in an entry for LoadModule that points to the mod_rewrite.so module?

Check this link for details:

http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/

Also, don't forget to restart Apache to test your changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜