Fortinet black logo

CLI Reference

config web-proxy redirect-profile

config web-proxy redirect-profile

URL redirect profile.

config web-proxy redirect-profile
    Description: URL redirect profile.
    edit <name>
        config entries
            Description: URL redirect entries.
            edit <id>
                set type [simple|regex|...]
                set url {var-string}
                set redirect-url {var-string}
                set redirect-code [auto|301|...]
            next
        end
    next
end

config web-proxy redirect-profile

Parameter

Description

Type

Size

Default

name

Name of the redirect profile.

string

Maximum length: 35

config entries

Parameter

Description

Type

Size

Default

id

Id.

integer

Minimum value: 0 Maximum value: 4294967295

0

type

URL match type (simple, regex or wildcard).

option

-

simple

Option

Description

simple

Simple URL string.

regex

Regular expression URL string.

wildcard

Wildcard URL string.

url

URL to be redirected.

var-string

Maximum length: 1023

redirect-url

Redirect URL for further web proxy processing.

var-string

Maximum length: 1023

redirect-code

Redirect code.

option

-

auto

Option

Description

auto

Auto select status code.

301

Status code 301 Move Permanently.

302

Status code 302 Move.

303

Status code 303 See Other.

307

Status code 307 Temporary Redirect.

308

Status code 308 Permanent Redirect.

config web-proxy redirect-profile

URL redirect profile.

config web-proxy redirect-profile
    Description: URL redirect profile.
    edit <name>
        config entries
            Description: URL redirect entries.
            edit <id>
                set type [simple|regex|...]
                set url {var-string}
                set redirect-url {var-string}
                set redirect-code [auto|301|...]
            next
        end
    next
end

config web-proxy redirect-profile

Parameter

Description

Type

Size

Default

name

Name of the redirect profile.

string

Maximum length: 35

config entries

Parameter

Description

Type

Size

Default

id

Id.

integer

Minimum value: 0 Maximum value: 4294967295

0

type

URL match type (simple, regex or wildcard).

option

-

simple

Option

Description

simple

Simple URL string.

regex

Regular expression URL string.

wildcard

Wildcard URL string.

url

URL to be redirected.

var-string

Maximum length: 1023

redirect-url

Redirect URL for further web proxy processing.

var-string

Maximum length: 1023

redirect-code

Redirect code.

option

-

auto

Option

Description

auto

Auto select status code.

301

Status code 301 Move Permanently.

302

Status code 302 Move.

303

Status code 303 See Other.

307

Status code 307 Temporary Redirect.

308

Status code 308 Permanent Redirect.