Welcome! Log In Create A New Profile

Advanced

Rewrite rules not working

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

1.

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;
}

2.

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: 184
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