Question

Nginx & Wordpress issues

Hello!

I’m having a hard time with nginx & wordpress. Specifically I installed/configured WP on http://www.busybabybook.com/blog/ and all seems to be ok EXCEPT for the fact that in the wp-admin/ I can’t see: Media, Posts return an “Invalid post type”, there are no Pages (but in fact I have 2: Contact and About).

Also, i would like to redirect www.busybabybook.com to www.busybabybook.com/blog/ but i’ve got no idea how to make this work without any problems in nginx.

Thank you in advance for helping out! Regards, Alex


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

From what I’ve read elsewhere, this error “Invalid post type” can be caused by different things. <br>I found, however, that in my case it was caused by the line that the Nginx devs suggest inserting into your php block from http://wiki.nginx.org/WordPress: <br> <br> fastcgi_split_path_info ^(/wordpress)(/.*)$; <br> <br>Commenting this line out and restarting nginx solved the issue. It also solved a problem that was racking my brain where I would get an error: “You are not authorized to view this page.” while accessing certain Admin pages. The Nginx support page might be out of date. <br> <br>I’m a total noob on regex and nginx blocks so I don;t fully understand what it was supposed to do in the first place. <br>Hope this helps. <br>

@alex: Actually, try this first: http://wiki.nginx.org/WordPress - “Non-root try_files to URL redirect”. <br>If that doesn’t fix your problem, see my previous comment.

@alex: I suggest you take a look at http://codex.wordpress.org/Nginx, especially the “WordPress Multisite Subdirectory rules” section.