Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » NextGEN Gallery slideshows with nginx
NextGEN Gallery slideshows with nginx
-
This has been often asked in the past, and the threads closed without a solution. So, mostly for the sake of those who might be googling for it, it seems that WordPress Answers has a solution:
http://wordpress.stackexchange.com/questions/124155/nginx-config-for-ngg-nextgen-gallery
In case that link disappears… the solution is to make sure that the try_files line is something like this:
try_files $uri $uri/ /index.php?q=$uri&$args;
In my case, because of other plugins which even require more alternative (and creative!) rewritings, I even went all the way to have:
try_files $uri $uri/ /index.php?$is_args$args /index.php?q=$uri&$args;
Radical, but it seems to do the job well.
-
Hi, can i ask you if your problem was that the slide doesn’t work and show always the same page of the article where you put the gallery? This is an example of my gallery:
If you try to access it redirect to the article; the next and prev button doesn’t work.
My permalink setting is: /%category%/%postname%.html
My configuration nginx for the site is:server { listen *:80; server_name www.ntacalabria.it ntacalabria.it; access_log /var/log/nginx/wordpress.access.log; error_log /var/log/nginx/wordpress.error.log; root /home/ftp/wordpress; index index.html index.htm index.php; include /etc/nginx.wp/restrictions.conf; include /etc/nginx.wp/wordpress.conf; rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last; try_files $uri $uri/ /index.php?q=$uri&$args; try_files $uri $uri/ /index.php?$is_args$args /index.php?q=$uri&$args; ... }
Let me know if you have any suggestion
Thank you
- The topic ‘NextGEN Gallery slideshows with nginx’ is closed to new replies.