Static raw HTML page

Here is what I have in my own .htaccess file that does what you’re looking for:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymLinks
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^example.html$ /wp-content/raw/example.html [L]
RewriteRule ^download$ /wp-content/raw/download-ebook.html [L]
RewriteRule ^thanks$ /wp-content/raw/book-opt-in-thank-you.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Leave a Comment