Welcome! Log In Create A New Profile

Advanced

Re: rewrite or return directives for discuz v3.1

Francis Daly
December 04, 2013 03:54PM
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.

http://nginx.org/r/rewrite

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite or return directives for discuz v3.1

r004 December 04, 2013 02:54AM

Re: rewrite or return directives for discuz v3.1

Jonathan Matthews December 04, 2013 06:48AM

Re: rewrite or return directives for discuz v3.1

Francis Daly December 04, 2013 03:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready