# .htaccess to nginx, how to make wp-minify work?

**URL:** <https://www.ruby-forum.com/t/htaccess-to-nginx-how-to-make-wp-minify-work/204874>\
**Category:** NGINX\
**Created:** [March 23, 2011, 7:58pm UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-how-to-make-wp-minify-work/204874 "2011-03-23T19:58:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 23, 2011, 7:58pm UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-how-to-make-wp-minify-work/204874/1 "2011-03-23T19:58:13Z")

</div>

This is the .htaccess located on /wp-content/plugins/wp-minify/min/ :

RewriteEngine on RewriteRule ^([a-z]=.\*) index.php?$1 [L,NE]

And I’m not able to figure out what should I put on my nginx  
configuration file, this is what I’ve got so far:

rewrite ^/wp-content/plugins/wp-minify/min/([a-z]=.\*)$  
/wp-content/plugins/wp-minify/min/index.php?

(I know it’s incomplete)  
Any ideas?  
Thank you,  
Regards.

Posted at Nginx Forum:

> **[.htaccess to nginx, how to make wp-minify work?](https://forum.nginx.org/read.php?2,185233,185233#msg-185233)**
>
> This is the .htaccess located on /wp-content/plugins/wp-minify/min/ : \<IfModule mod\_rewrite.c\> RewriteEngine on RewriteRule ^(\[a-z\]=.\*) index.php?$1 \[L,NE\] \</IfModule\> And I'm not able to figure out what should I put on my nginx configur

---

<div class="post-metadata">

**Author:** ![Zarafolas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/90db22/32.png) [@Zarafolas](https://www.ruby-forum.com/u/Zarafolas)\
**Post date:** [March 24, 2011, 10:32am UTC](https://www.ruby-forum.com/t/htaccess-to-nginx-how-to-make-wp-minify-work/204874/2 "2011-03-24T10:32:02Z")

</div>

If your WordPress installation works, WP Minify does too! There is no  
need for special rewrites.

Posted at Nginx Forum:

> **[Re: .htaccess to nginx, how to make wp-minify work?](https://forum.nginx.org/read.php?2,185233,185351#msg-185351)**
>
> This is the .htaccess located on /wp-content/plugins/wp-minify/min/ : \<IfModule mod\_rewrite.c\> RewriteEngine on RewriteRule ^(\[a-z\]=.\*) index.php?$1 \[L,NE\] \</IfModule\> And I'm not able to figure out what should I put on my nginx configur
