Winner of the Best WordPress Business Website - WP Honors 2011
Since 2004
 

Forums

 

Manuals

 

Videos

 

Live Support

 

WPMU.org

404 Error When Trying to Create a Group

Inactive

Hello,

I have tried everything I could find on the internet to solve this
problem. I am getting a 404 error on the following page:
groups/create/step/group-avatar/. The group is created, I can visit
other pages (although I haven’t tried everything out yet), but the
group-avatar page is keeps getting this error.

I am running my site on nginx and amazon ec2 (ubuntu 10.04).

I searched Google and found various posts which talk about the proper
rewrite rules for nginx and have tried them all – none of them have
helped [I've tried various ones on this forum, on wpmudev.org and
other sites/forums].

As such, I am stuck. I would love it if someone could help me figure
out what is wrong.

Here is the URL to the site [please note that this is just a test
site which I am trying to set up to work on a clients project]:
http://howtowrite.net.

And here is my nginx configuration:

server
{
listen 80;
server_name howtowrite.net *.howtowrite.net;
access_log [PATHTO]/log/access.log;
error_log [PATHTO]/log/error.log;
# rewrite rule – files
location / {
root [PATHTO]/howtowrite.net/public;
index index.php;

gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 3;
gzip_proxied any;
gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript;
gzip_buffers 16 8k;

if (!-e $request_filename) {
rewrite ^.+/?(/ms-.*) $1 last;
rewrite ^/files/(.+) /wp-includes/ms-files.php?file=$1 last;
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
expires 10d;
break;

}
}

location ~*
^.+.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root [PATHTO]/howtowrite.net/public;
rewrite
^/.*(/wp-.*/.*.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$
$1 last;
rewrite
^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$
/wp-includes/ms-files.php?file$
if (!-e $request_filename) {
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
}

expires 30d;
break;
}
# php requests – fast cgi
location ~ .php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
[PATHTO]/howtowrite.net/public$fastcgi_script_name;
include [PATHTO]/fastcgi_params;
}
}

Thanks and be well,

Moshe

Everyday at WPMU DEV we help hundreds of WP Users. Become a member today to:

  • Download 250+ Premium Plugins and Themes
  • Get unlimited support from WordPress Experts
  • Get help with your WordPress or BuddyPress projects

Help & Support from WPMU DEV members and staff

Keeper of the Dark Chocolate

Greets and welcome to wpmudev.

Can you copy and paste the specific error out of your webserver's error logs please? Should be in /var/log/nginx/error.log but not sure about amazon's setup.

We can help you out. Become a member today to:

  • Let our team help you out today and access to over 250+ Premium Plugins and Themes
  • Find out why people saying "it's like having your own developer"
  • WPMU DEV - The WordPress Experts