Get the App
SLTechnology News&Howtos  ›  Servers  › 

Nginx rewrite secondary directory jump band slash

Shulou Source: shulou.com Published: 2022-06-02 21:18:25 11月14日 Update

Since the website url has a custom secondary directory, such as http://www.example.com/ppt, you need to force a slash after the secondary directory ppt. At this point, you need to make rewrite rules. The correct method has not been found on the Internet. This was sued by my colleague, and it has been put into practice.

Rewrite ^ / ([a-zA-Z] +) $/ $1 / permanent

Tags: Directories slashes colleagues methods websites rules or practice enforcement Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Technology OPPO Reno vpn Shulou Information