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: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready