Rewrite question - "(css/js).php" to "(.css/.js)"

Hi, I want to speed up my WordPress Blog … so I want to rewrite
“js/css.php” to “.js/.css” files. I tested this rewrite rules …

## Optimierung - "(css/js).php" to "(css/js)"
        location /wp-content/plugins/wp-special-textboxes/css/ {
                if ($args ~ "ver=(.*)") {
                        rewrite ^/?(.*)
$scheme://$host/wp-content/cache/wp-special-textboxes.css permanent;
        location /wp-content/plugins/wp-special-textboxes/js/ {
                if ($args ~ "ver=(.*)") {
                        rewrite ^/?(.*)
$scheme://$host/wp-content/cache/wstb.js permanent;

… but it make only this …

… and not thia …

… can someone, please help ??? Thx!

And I have a second question, I today also tested “varnish” (on port 80)
with “nginx” (on port 8080), but I have the problem that there are some
of this entries in the html-sources -> "@import
"";" … so can someone say me how I
can rewrite the port to 80, thx in advance?


Posted at Nginx Forum:,143963,143963#msg-143963

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs