How to make nginx to redirect multiple subdomains?

Is there a redirect plugin for Wordpress that works with an Nginx server (no htaccess file)?

  • We're using a Nginx server rather than apache and Nginx doesn't use htaccess All the plugins I've found do mod_rewrites and 301 redirects via the htaccess file.  How is this accomplished with Nginx and is it possible with a redirect or SEO plugin?

  • Answer:

    Paul, we use/recommend http://wordpress.org/plugins/redirection/ for a lot of our customers. It works great. Or are you trying to the www, nakedomain 301/canonical url thing?

Vid Luther at Quora Visit the source

Was this solution helpful to you?

Other answers

Simple 301 redirects is server agnostic, as it uses the wp_redirect function (and thus not at the server level)

Andrew Norcross

If you have a wroking .htaccess file then you can convert those rules into Nginx rules using http://winginx.com/htaccess service!

Karthik Panjaje

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.