Score:0

Nginx wordpress rewrite rule

lb flag

I'm trying to move a website from apache2 to nginx, the old server with apache has a rewrite rule like this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^^gallery/([^/]*)/([^/]*)/? /?post_type=gallery [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

in particular this part:

RewriteRule ^^gallery/([^/]*)/([^/]*)/? /?post_type=gallery [QSA,L]

I'm trying to port this rule to nginx with no success, any hints?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.