What is the role of "RedirectMatch"


I see following in my httpd.conf

RewriteEngine On
RedirectMatch 301 ^/$ /apps/dashboard

Open in new window

Instead of above if I put below config then does it make any difference?
RewriteEngine On
RedirectRule 301 ^/$ /apps/dashboard [R=302,L]

Open in new window

What is the role of "RedirectMatch"
Who is Participating?
Haris DulicCommented:

difference is that the RedirectRule will not wrok since it does not exist :). But i guess that you meant RewriteRule and if that is the case it will do the same thing.
RedirectMatch is same [302,L]
And it does not need rewrite engine since it is provided by mod_alias
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.