Hi,

The rewriteRule for nginx is as follows,

if (!-e $request_filename) {
  rewrite ^/(.*)$ /index.php?q=$1 last;
}

will it work like this? Sorry I am not really good at server config...

if (!-e $request_filename) {
  rewrite ^/(.*)$ /js.php?q=$1 last;
}

if (!-e $request_filename) {
  rewrite ^/(.*)$ /index.php?q=$1 last;
}

Comments

sun’s picture

Status: Active » Closed (cannot reproduce)

Sorry, I'm not familiar with nginx. Feel free to re-open this issue if you figured it out. Happy to add that to the README.txt.

mrded’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active

Add following to your NGINX configuration:

location ^~ /js/ {
  location ~* ^/js/ {
    rewrite ^/(.*)$ /js.php?q=$1 last;
  }
}
mrded’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
markhalliwell’s picture

Status: Active » Closed (duplicate)

Really no reason to re-open this with #2318527: Provide Nginx rewrites already open.