> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/webservers/apache/redirect-301-apache-to-index.html.md).

# Redirect 301 - Apache to index.html

### To redirect use the following code in the HEAD section:

```html
<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:

```html
<p><a href="http://example.com/">Redirect</a></p>
```

Will appear as:

```http
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:

```bash
./path/to/apache2 configure -x
```

Restart Apache after:

```bash
./path/to/apache2 restart
```
