Redirect 301 - Apache to index.html
To redirect use the following code in the HEAD section:
<meta http-equiv="refresh" content="0; url=http://example.com/" />
Additionally for older browsers if you add a quick link in case it doesn't refresh correctly:
<p><a href="http://example.com/">Redirect</a></p>
Will appear as:
Redirect
This will still allow you to get to where you're going with an additional click.
After the links have been set up use:
./path/to/apache2 configure -x
Restart Apache after:
./path/to/apache2 restart
Last updated