Redirect on URL Match

From Devpit
Jump to: navigation, search

In order to redirect to a different page or location from within an apache virtual host

So when an URL such as is types it will redirect to

RedirectMatch ^/$ /wiki/

Q: Why is that different from the following? The above looks better, so why do we use the style below for Installing Mediawiki?

RewriteEngine On
RewriteRule ^/(.*)$ /mediawiki/index.php/$1 [L,QSA]

Bilbo 15:26, 29 December 2005 (CST)