Welcome! Log In Create A New Profile

Advanced

Merge 2 rewrite rule becoming 1

Posted by kocoten1992 
Merge 2 rewrite rule becoming 1
November 26, 2015 12:41PM
Hi guys,

I have the rewrite rules at below:

rewrite ^(.*)//+(.*)$ $1/$2 permanent;
rewrite ^/(.*)/$ /$1 permanent;

A pro told me to merge it, cause it not good to have 2 rewrite one after another.
How could I make this to only one rewrite rule.

Thank you very much :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready