Welcome! Log In Create A New Profile


Rewrite rules not working

September 11, 2016 08:12AM
I am trying to make pretty urls using rewrite rules but they are not working


https://example.com/s1/video.mp4 should be rewrite to https://example.com/file/server/video.mp4

location = /s1/(.*)$ {
rewrite ^/s1/(.*) /file/server/$1 permanent;


https://example.com/view/video5353 should be rewrite to https://example.com/view.php?id=video5353
Subject Author Posted

Rewrite rules not working

khav September 11, 2016 08:12AM

Re: Rewrite rules not working

Francis Daly September 11, 2016 09:46AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
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