# Safe Redirect Manager

**URL:** https://discourse.roots.io/t/safe-redirect-manager/6448
**Category:** bedrock
**Created:** 2016-04-12T18:05:19Z
**Posts:** 7

## Post 1 by @buswell — 2016-04-12T18:05:20Z

Hi y’all

Apologies if this thread is really obvious (please delete if so)

I’ve just installed Root’s recommended plugin “Safe Redirect Manager” - but

1. This is on a big site where I’m working with SEO guys so I can’t mess this up!
2. 301 redirects are really “sticky” in the browser - so they’re a nightmare for testing!

So I really don’t want to trial&error this!

And I figure as it’s a Roots recommended plugin you guys could tag this thread as a tutorial!

My confusion it how under **“Redirect from”**  
_“This path should be relative to the root of this WordPress installation”_

Yet on **Redirect to**  
_"This can be a URL or a path relative to the root of your website"_

Obviously on Bedrock those two things are very different!

I’ve been given a spreadsheet with a long list of _old page\>new page_ mappings and I just need to insert all these.

Thanks in advance!

---

## Post 2 by @ben — 2016-04-12T18:07:57Z

You can use relative URLs like “/about/” without worrying about anything Bedrock related

There’s also WP-CLI support if you want to do a batch import

---

## Post 3 by @buswell — 2016-04-12T18:29:30Z

Amazing Ben thanks as always!!

WP-CLI: unfortunately this is the last site I’m making on WAMP so no such luck - all my new development sites I’m using Vagrant which means Puphpet includes WP-CLI

The SEO guys were asking for another redirect plugin but I’m such a Roots Fanboi that I basically say to anyone “I work with all the Roots tools and if that’s not OK then it’s not OK that I work for you”

---

## Post 4 by @RiFi2k — 2016-04-12T19:16:05Z

If you have a long list of URLs and their destinations already set up for you, I would go with Nginx for the rewrites as it will be faster than PHP redirects which is what I assume that plugin will do for you.

> **[How to Create NGINX Rewrite Rules | NGINX](https://www.nginx.com/blog/creating-nginx-rewrite-rules/)**
>
> Learn how to create NGINX rewrite rules to control the flow of request processing or redirect clients to the correct location for resources they request

  
[https://www.nginx.com/resources/wiki/start/topics/tutorials/config\_pitfalls/#taxing-rewrites](https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/#taxing-rewrites)

Then you can add them easily into Nginx with Trellis as well if you want

> **[Nginx Includes | Trellis Documentation | Roots](https://roots.io/trellis/docs/nginx-includes/)**
>
> Trellis allows you to implement Nginx customizations by placing files in specifically named subdirectories within a directory named includes.d.

This method has always served me well and you don’t ever need to worry about the plugin getting deactivated and your rewrites going away.

But if your going to be doing it read up on both those Nginx pages above it will give you a better feel for what you are actually doing, why you are doing it, and the best way to accomplish it for your particular use case.

---

## Post 5 by @JulienMelissas — 2016-04-12T19:58:01Z

Yeah… WP-CLI imports didn’t work (and were very confusing) for me on a recent project, and so I ended up using the Redirection plugin :frowning: That said it imported my `301 Redirect /.../ /.../`file right away. I saw and they have some beta Nginx feature but I didn’t mess with it…

---

## Post 6 by @buswell — 2016-04-12T20:54:49Z

Cheers guys! I love this forum for advice.

Re RiFi2k - I’m not on Trellis, I’m putting the site on Siteground managed WordPress hosting so it’s all Apache with .htaccess files. But it seems easier to do with a plugin - I hadn’t thought though about the redirects being at the PHP level. I suppose that will be slower but this won’t be getting like 100k hits a day or anything like that!

---

## Post 7 by @mattia — 2019-03-06T18:40:36Z

I am using the same plugin that you roots guys suggested. (Safe Redirect Manager)

I had an old static php website [domain.com/work.php](http://domain.com/work.php) that I would like to redirect to the new WordPress build with trellis/bedrock and sage [domain.com/work/](http://domain.com/work/)

is this the correct way to set the redirect from a php file to a wordpress page?

 ![34](https://discourse.roots.io/uploads/default/original/2X/7/7e552637b61b5d7ce9e389f33ab5c6f287ea3d84.png)

Thanks in advance!
