Making Wordpress Plugins Work With Nginx

damnlinux nginx-forum at nginx.us
Sat Sep 17 00:25:01 UTC 2011


Thank you Ensiferous.

I don't think it's a PHP issue because Wordpress itself works fine it is
quite possible though that it's a mod_rewrite issue. I'm not familiar
with Nginx access rewrite my .htaccess is really basic


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} ^http:// [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule \.(jpe?g|gif|png)$ - [F]

Thanks again for the help

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,215277,215319#msg-215319



More information about the nginx mailing list