How to allow wordpress site to display standalone HTML pages?

admin

Administrator
Staff member
This is my WP htaccess

Code:
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.

Code:
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?