Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

rewrite issue

$
0
0
Hi all Ive got a problem that I hope is simple.

I have a wordpress plug in that produces a link to a picture when a user chooses to share it.
I have discovered that the link is properly formed and should work

It looks like this:
http://www.example.com/nextgen-share/6064/872/thumb?uri=/the-galleries/headshot-gallery/

When that link hits the server coming back in it changes to
http://www.example.com/?q=/nextgen-share/6064/872/thumb?#gallery/6064/872. Wordpress chokes on that link .

I have narrowed it down to a line in my nginx conf.
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
This is needed to make the permalinks work I guess

My question is how to make the generated url work correctly ?

This has been my first nginx install that I have managed so I am still very much on the learning curve so I would appriciate any help

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>