{"id":489563,"date":"2006-12-12T21:10:23","date_gmt":"2006-12-12T21:10:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-allow-an-htaccess-exception-for-a-regular-page\/"},"modified":"2016-08-18T22:14:57","modified_gmt":"2016-08-18T22:14:57","slug":"how-to-allow-an-htaccess-exception-for-a-regular-page","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-allow-an-htaccess-exception-for-a-regular-page\/","title":{"rendered":"How to allow an .htaccess exception for a regular page?"},"content":{"rendered":"<p>WP&#8217;s .htaccess rules are handling requests for product_reviews.php (a non-WP page), and I want WP to leave that page alone.<\/p>\n<p>The WP rules are fine, work great. When I remove WP rules, Product Reviews rules work fine.<\/p>\n<p>But together, the product_reviews page doesn&#8217;t work because WP handles it and displays its 404 page when it doesn&#8217;t find product_reviews in \/blog.<\/p>\n<p>I&#8217;ve tried a bunch of things like moving one over another, redeclaring RewriteEngine on etc&#8230; even tried putting product_reviews.php in \/blog. No dice.<\/p>\n<p><code>&lt;IfModule mod_rewrite.c&gt;<br \/>\nRewriteEngine On<br \/>\n# BEGIN WordPress<br \/>\nRewriteBase \/blog\/<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/blog\/index.php [L]<br \/>\n# END WordPress<br \/>\n# BEGIN product_reviews<br \/>\nRewriteBase \/<br \/>\nRewritecond product_reviews\/%{QUERY_STRING} submission=true<br \/>\nRewriteRule product_reviews\/mode\/([0-9]+)\/id\/([0-9]+)(\/)?$ product_reviews.php?mode=$1&#038;id=$2&#038;flag=2 [L]<br \/>\nRewriteRule product_reviews\/mode\/([0-9]+)\/id\/([0-9]+)(\/)?$ product_reviews.php?mode=$1&#038;id=$2&#038;flag=1<br \/>\n# END product_reviews<br \/>\n&lt;\/IfModule&gt;<br \/>\n<\/code><\/p>\n","protected":false},"template":"","class_list":["post-489563","topic","type-topic","status-closed","hentry","topic-tag-htaccess","topic-tag-rewriterule"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/489563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/489563\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=489563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}