RedirectMatch (.*) domain.com/folder does not work. Its giving me "The page is not redirecting correctly" error in ff.

Anybody possess a solution? Attempted a couple of various ways like rewrite however i keep getting these redirect errors and 500 errors.

Do this:

Options +FollowSymlinks

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !^/folder$
RewriteRule ^(.*)$    http://domain.com/folder [R=301,L]

If you are using only this rule RewriteRule ^(.*)$ http://domain.com/folder [R=301,L] Apache will fall inside a loop which means you obtain the message:

The page isn't redirecting properly

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/folder(.*)$ [NC]
RewriteRule ^(.*)$    http://domain.com/folder [R=301,L]

The R may be the redirect type (Permanent/Tmeporary). And also the L way to stop processing anymore rules such as the following this rule if it's matched up.

Also, inside your httpd.conf, make certain you've set AllowOverride All if you're trying to get this done inside a .htaccess file and never inside a custom config file.

Or, you can put this inside your index.html:

<script language=javascript>
    location.replace("http://domain.com/folder");
</script>