Welcome! Log In Create A New Profile

Advanced

Rewrite setting for md file type to StackEdit

Posted by ollieweng 
Rewrite setting for md file type to StackEdit
January 17, 2015 01:32PM
What I need is to turn on autoindex, and while click on the file, redirect .md file to stackedit site. what i did is to add rewrite as below:

location ~* \.(md)$ {
rewrite ^(.*) http://stackedit.io/viewer?url=http://mycom$1 last;
}

however, it doesn't work since it will be rewrited again once stackedit file the request for my .md file.

So, can anybody help me how to config so i can click on my .md file and redirect Stackedit and open it??


Thanks!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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