redirect-301

Redirect visitors.

Description

Redirect visitors to another URL.

This is a permanent redirect with status-code 301 which passes on SEO juice. It also sets no-cache headers so that you can change your mind later. A classic issue with redirects is that if you make them permanent, then other systems, including your own browser will cache it for a really long time, making testing and development really hard.

Usage

Set the file's location string attribute to the desired URL in any of the following formats:

  • /path

  • //example.com/path

  • https://example.com/path

  • ?foo=bar

  • /path?foo=bar

  • //example.com/path?foo=bar

  • https://example.com/path?foo=bar

Example

{
    "link": "",
    "type": "redirect-301",
    "title": "",
    "statusCode": 0,
    "attr": {
        "location string": "https://example.com/path"
    }
}

Implemented OS Interfaces

.Request