Wordpress permalink requires nginx rewrite rules
Bug #1244371 reported by
Hamed Hemmati
This bug affects 2 people
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| wordpress (Juju Charms Collection) |
In Progress
|
High
|
Marco Ceppi | ||
Bug Description
When you switch the permalink to anything other than default you get bad gateway from nginx. After a little bit of investigation I realized the site information under sites-available of nginx is missing the rewrite rules.
This is what I added for mine and it works fine now. Please add this to juju wordpress charm.
# Wordpress permalinks
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
break;
}
| Changed in wordpress (Juju Charms Collection): | |
| assignee: | nobody → Marco Ceppi (marcoceppi) |
| status: | New → Confirmed |
| Changed in wordpress (Juju Charms Collection): | |
| status: | Confirmed → In Progress |
| importance: | Undecided → High |
To post a comment you must log in.
Is there any way to do a temporary fix? When I change the wordpress file under sites-availabe it works fine for a while and then it gets overwritten. I am doing a buddypress development so the permalink has to be changed to something other than default.