---
name: "cgiRedirect"
section: "3"
platform: "linux"
package: "cgilib"
version: "0.6-1.1+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/cgiRedirect"
---

# cgiRedirect(3)

Redirect the browser somewhere else

## NAME

cgiRedirect - Redirect the browser somewhere else

## SYNOPSYS

```
#include <cgi.h>

void cgiRedirect (char *url);
```

## DESCRIPTION

The **cgiRedirect** routine redirects the browser to another *url*. This mechanism may be useful to redirect invalid requests to some static pages describing the policy.

## RETURN VALUE

**cgiRedirect**() does not return a value.

## AUTHOR

This CGI library is written by Martin Schulze \<joey@infodrom.org\>.  If you have additions or improvements please get in touch with him.

## SEE ALSO

[**cgiInit**(3)](/cgiInit/3.md), [**cgiHeader**(3)](/cgiHeader/3.md).
