Nginx Multisite subdirectory is 301 redirecting to root of site
-
Hi,
I’m having some trouble with parts of my site redirecting (301 according tocurl -I
)
According thecurl -I
, they are only redirecting when there is not a forward-slash on the URL.
This is not the case when viewed in a browser. In a browser, all subdirectories are redirected to the root domain.
The only time they are not is when I navigate to a post from Admin > Posts > Edit Post > View Post.I am using @pothi ‘s git that’s found here: https://github.com/pothi/WordPress-Nginx (using the set up for sub-directories
mu-dir-domainname.com.conf
)I’ve changed only the parts need to be personalized to my setup (domain, etc.) AND I commented out the line
rewrite ^/[_0-9a-zA-Z-]+(/wp-(content|admin|includes).*) $1 break;
in the/etc/nginx/mu-dir.conf
file (at least that’s how I understood the instructions in that file)It looks like the most solid configuration I’ve found, but this one issue I’m having some trouble figuring out.
@pothi, if you see this, is there any advice you might be able to offer?Thanks,
Chase
- The topic ‘Nginx Multisite subdirectory is 301 redirecting to root of site’ is closed to new replies.