rewrite or return directives for discuz v3.1

Jonathan Matthews contact at
Wed Dec 4 11:47:29 UTC 2013

On 4 December 2013 07:54, r004 <nginx-forum at> wrote:
> hello;
> I want to write a block to put in my VHOST config file.
> i want
> 1. if there is "/install/index.php/" in the link. it shouldbe removed from
> the link.
> 2. if the format is like  /uc_server/blab.php/uc_server/blahblah ===it
> should change to===>/uc_server/blabal
> what should I put in my VHOST config file and where?

What part are you having difficulties with?

Have you read the documentation for "location" and "rewrite"? Have a
read of that, and then let us know if you're still having a problem.


More information about the nginx mailing list