How do I do a rewrite instead of a 302 for missing pages?

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !index.html
RewriteRule /* /index.html [L]

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How do I turn directory Indexing off?

Options -IndexesTurn it back on:Options +Indexes

How do I block a specific domain?

order allow,denydeny from fraudster.comallow from all

How can I setup dynamic/custom error pages?

If you have defined your own custom Error Pages using the "Define Error Pages" tool within the...

How do I stop off-line browsers/ robot surfers?

RewriteEngine OnRewriteCond %{HTTP_USER_AGENT} ^MozillaRewriteRule /* - [L]RewriteCond...

How do I prevent spam from email harvestering?

RewriteEngine onRewriteCond %{HTTP_USER_AGENT} ^Bullseye.* [OR]RewriteCond %{HTTP_USER_AGENT}...