How to allow wordpress site to display standalone HTML pages?

This is my WP htaccess

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I want wordpress’ htaccess to stay out of the way when the link is to a standalone .html|.htm file inside the /ag directory.

Read More
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !/ag
RewriteRule . /index.php [L]

Doesn’t work (I am aware the above code doesn’t even try to implement the requirement that the file ends in .html|.htm). What do I need?

Related posts

Leave a Reply

2 comments

  1. The original rewrite conditions only rewrite if the file does not exist, and is not a directory.

    Therefore if you have the file in a directory, there should be no rewrite happening.