I've recently reduced a site from a huge wordpress blog to a single page (homepage) and one other page.
I'd like to 301 redirect all pages which aren't the homepage or /confirmed
to the homepage. I've tried a few things, but they all end in a redirect loop. Here is what I have in my conf.
Thanks for the help!
location / {
try_files $uri $uri/ $uri/index.php?$args;
}
location /confirmed {
try_files $uri $uri/ /confirm-user.php?$args;
}
With this config, all other urls are going to the homepage, but it's not a 301.