Provides interface for setting up redirects

Installs: 14

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 1


1.0.1 2021-04-06 20:47 UTC

This package is auto-updated.

Last update: 2024-07-07 03:59:34 UTC


SilverStripe Redirects

Provides an interface to setup redirects from old URLs to new pages Resolves alternate domains if you're meging sites together Great for setting up 301 redirects when launching a new site with URL changes


$ composer require iqnection/silverstripe-redirects

Run a database rebuild and flush

It's strongly suggested to set the environment variable for your main site URL In your root .env file and add/update the following



Navigate to Redirects area in the CMS to manage your redirects

Domains will automatically be matched regardless of if "www" is included, or if HTTP or HTTPS.


Redirect from to somewhere Request URLs:

  • => redirect match
  • => redirect match
  • => no match
  • => no match

Redirect from subdomain to somewhere (assuming and resolve to different hosting accounts) Request URLs:

  • => redirect match
  • => no match
  • => match
  • => redirect match

Redirect from alternate domain to somewhere on (assuming and resolve to the same hosting account) Request URLs:

  • => redirect match
  • => redirect match
  • => redirect match
  • => redirect match

While the site is in dev mode, all redirects will be 302 regardless of their configuration. This is to keep from the redirects being cached by browsers.


Import redirects using the CMS Bulk Import Form Your CSV will need the following column titles

  • FromPath: Relative path or full URL of the old page or file
  • Destination: Relative path or full URL of the new page or file