{"id":711,"date":"2007-02-10T23:45:04","date_gmt":"2007-02-10T21:45:04","guid":{"rendered":"http:\/\/www.rare-it.com\/blog\/index.php\/2007\/02\/10\/rewriterule-log-file\/"},"modified":"2007-02-10T23:45:04","modified_gmt":"2007-02-10T21:45:04","slug":"rewriterule-log-file","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2007\/02\/rewriterule-log-file\/","title":{"rendered":"RewriteRule log file"},"content":{"rendered":"<p>After migrating my server to Linux, I also tried to do something about the non-existent URL&#8217;s. The previous installation had some old websites, but they where never updated. Since I did not migrate them, quite some 404&#8217;s started to come up in the logfiles.<\/p>\n<p>I already had quite a number of RewriteRules in place, but for some reason the Rewrite-logfile remained empty. Not sure why, but the logfile was called &#8220;rewrite_log&#8221;. I checked the httpd.conf and located the logfile. Same name. But whilst here, why not change it to rewrite.log. Restart Apache. New logfile rewrite.log was created. I deleted the old. To test, I opened my browser and pointed to an URL that should be rewritten. Well I&#8217;ll be damned! It works. And the logfile grows&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After migrating my server to Linux, I also tried to do something about the non-existent URL&#8217;s. The previous installation had some old websites, but they where never updated. Since I did not migrate them, quite some 404&#8217;s started to come up in the logfiles. I already had quite a number of RewriteRules in place, but <a href='https:\/\/www.switchbl8.nl\/blog\/2007\/02\/rewriterule-log-file\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=711"}],"version-history":[{"count":0,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/711\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}