rewrite or return directives for discuz v3.1

Francis Daly francis at
Wed Dec 4 20:53:29 UTC 2013

On Wed, Dec 04, 2013 at 02:54:30AM -0500, r004 wrote:

Hi there,

> 1. if there is "/install/index.php/" in the link. it shouldbe removed from
> the link.

In the rewrite line, capture the parts before and after
/install/index.php/, and rewrite to those parts without the middle bit.

> 2. if the format is like  /uc_server/blab.php/uc_server/blahblah ===it
> should change to===>/uc_server/blabal

What does "format is like" mean? urls that start with something, or that
end with something, or that include a specific pattern somewhere?

Which parts of the input are used to make the output?

If you can write down how the matching should happen, the rewrite rule
should become clear.

Francis Daly        francis at

More information about the nginx mailing list