{"id":1293,"date":"2018-01-06T09:59:28","date_gmt":"2018-01-06T07:59:28","guid":{"rendered":"https:\/\/community.virtono.com\/?p=1293"},"modified":"2018-01-05T10:01:00","modified_gmt":"2018-01-05T08:01:00","slug":"fix-apache-internal-server-error-due-to-htaccess-bad-flag-delimiter","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/knowledgebase\/fix-apache-internal-server-error-due-to-htaccess-bad-flag-delimiter\/","title":{"rendered":"Fix Apache Internal Server Error due to htaccess bad flag delimiter"},"content":{"rendered":"<p>The Apache web server has several causes that cause an\u00a0<b>internal server error<\/b>\u00a0.\u00a0One possible cause is erroneous entries in an htaccess file, for example due to incorrectly defined forwarding.\u00a0In this article we describe how you can narrow down the problem and fix the cause.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/fix-apache-internal-server-error-due-to-htaccess-bad-flag-delimiter\/#error_message\" title=\"error message\">error message<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/fix-apache-internal-server-error-due-to-htaccess-bad-flag-delimiter\/#Error_Log\" title=\"Error Log\">Error Log<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/knowledgebase\/fix-apache-internal-server-error-due-to-htaccess-bad-flag-delimiter\/#solution\" title=\"solution\">solution<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"error_message\"><\/span><span id=\"Fehlermeldung\" class=\"mw-headline\">error message<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<div class=\"thumb tright\">\n<div class=\"thumbinner\"><a class=\"image fancybox\" href=\"https:\/\/i0.wp.com\/www.thomas-krenn.com\/de\/wiki\/Datei%3AApache_Internal_Server_Error.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"thumbimage\" src=\"https:\/\/i0.wp.com\/www.thomas-krenn.com\/de\/wikiDE\/images\/thumb\/4\/4c\/Apache_Internal_Server_Error.png\/350px-Apache_Internal_Server_Error.png?resize=350%2C92&#038;ssl=1\" alt=\"\" width=\"350\" height=\"92\" \/><\/a><\/p>\n<div class=\"thumbcaption\">\n<div class=\"magnify\"><\/div>\n<p>Internal Server Error<\/p><\/div>\n<\/div>\n<\/div>\n<p>Your Apache web server returns the following error message when you visit a page:<\/p>\n<pre>Internal Server Error\r\n\r\nThe server encountered an internal error or misconfiguration\r\nand what not to complete your request.\r\n\r\nPlease contact the server administrator, example@example.com\r\nand inform them\r\nyou might have done that.\r\n\r\nMore information about this error may be available in the\r\nserver error log.\r\n\r\nApache Server at www.example.com Port 80\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Error_Log\"><\/span><span id=\"Error_Log\" class=\"mw-headline\">Error Log<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In the error log you will find the following entry:<\/p>\n<pre>[Sun Oct 24 21:58:22 2010] [alert] [client 10.1.1.1] \/home\/path\/.htaccess: RewriteCond: bad flag delimiter\r\n<\/pre>\n<p>This indicates a bad configuration in the htaccess file.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"solution\"><\/span><span id=\"L.C3.B6sung\" class=\"mw-headline\">solution<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Search the htaccess file for erroneous entries.<\/li>\n<li>Review testable questionable areas.<\/li>\n<li>Presumably, there have recently been changes to the htaccess file that led to the Internal Server Error.\u00a0Compare the current version of the htaccess file with the last version of the backup (eg with the diff command).\u00a0This should allow you to quickly narrow down and correct the erroneous entries.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Apache web server has several causes that cause an\u00a0internal server error\u00a0.\u00a0One possible cause is erroneous entries in an htaccess file, for example due to incorrectly defined forwarding.\u00a0In this article we describe how you can narrow down the problem and fix the cause. error message Internal Server Error Your Apache<\/p>\n","protected":false},"author":3,"featured_media":1294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-1293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/01\/hqdefault.jpg?fit=480%2C360&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-kR","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":688,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/setting-up-security-on-apache\/","url_meta":{"origin":1293,"position":0},"title":"Setting Up Security on Apache","author":"Daniel Draga","date":"October 9, 2016","format":false,"excerpt":"To get an in-depth knowledge on Apache Web Server, please visit, this. However if you've already begun working with Apache and know about it, and are only concerned with securing your server, here are a few tricks that will help you out, read them and use them carefully. Protecting the\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":143,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/difference-between-apache-http-and-apache-tomcat\/","url_meta":{"origin":1293,"position":1},"title":"Difference between Apache http and Apache Tomcat","author":"Daniel Draga","date":"July 23, 2016","format":false,"excerpt":"This article is part of series of articles on Apache. Here is the list: Introduction to Apache Web Server. Difference between Apache http and Apache Tomcat.(this one) How to Install and Run Apache Web Server on Ubuntu Linux How to Install and Run Apache Web Server on Windows 10. Original\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/07\/apache-tomcat.png?fit=208%2C207&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":139,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/apache-web-server\/","url_meta":{"origin":1293,"position":2},"title":"Apache Web Server","author":"Daniel Draga","date":"July 23, 2016","format":false,"excerpt":"This article is part of series of articles on Apache. Here is the list: Introduction to Apache Web Server (this one) Difference between Apache http and Apache Tomcat. How to Install and Run Apache Web Server on Ubuntu Linux How to Install and Run Apache Web Server on Windows 10.\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/07\/apache.png?fit=512%2C512&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":147,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-and-run-apache-web-server-on-ubuntu-linux-os\/","url_meta":{"origin":1293,"position":3},"title":"How to Install and Run Apache Web Server on Linux OS","author":"Daniel Draga","date":"July 23, 2016","format":false,"excerpt":"This article is part of series of articles on Apache. Here is the list: Introduction to Apache Web Server. Difference between Apache http and Apache Tomcat. How to Install and Run Apache Web Server on Ubuntu Linux.(this one) How to Install and Run Apache Web Server on Windows 10. Original\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/07\/CfXJWnZUsAACtrg2.png?fit=470%2C245&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":685,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/10-apache-performance-tips\/","url_meta":{"origin":1293,"position":4},"title":"10 Apache Performance Tips","author":"Daniel Draga","date":"October 9, 2016","format":false,"excerpt":"To get an in-depth knowledge on Apache Web Server, please visit, this. But if you are looking for fast efficient ways to increase your Apache Server's performance, just follow the steps below, they are fast, small and they work like a charm. 1. Put the cache on a separate disk\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1036,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/installing-lamp-linux-apache-mysql-php-stack-on-debian-7-server\/","url_meta":{"origin":1293,"position":5},"title":"INSTALLING LAMP (LINUX, APACHE, MYSQL &amp; PHP) STACK ON DEBIAN 7 SERVER","author":"Daniel Draga","date":"September 25, 2017","format":false,"excerpt":"LAMP STANDS FOR: L:Linux A:Apache M:MySQL P:PHP What is LAMP? LAMP is a shorthand term for a\u00a0web application platform\u00a0consisting of Linux, Apache, MySQL and one of Perl or PHP. Lamp is an\u00a0\u00a0OPENSOURCE Together, these open source tools provide a world-class platform for deploying web applications TECHNOLOGIES USED IN LAMP: For\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/09\/maxresdefault.jpg?fit=1200%2C750&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/09\/maxresdefault.jpg?fit=1200%2C750&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/09\/maxresdefault.jpg?fit=1200%2C750&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/09\/maxresdefault.jpg?fit=1200%2C750&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/09\/maxresdefault.jpg?fit=1200%2C750&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=1293"}],"version-history":[{"count":1,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1293\/revisions"}],"predecessor-version":[{"id":1295,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1293\/revisions\/1295"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/1294"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=1293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=1293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=1293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}