You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its not that difficult to figure out, but it would be awesome if the README described how this works with NGINX as well. Basically all you need to do is put these lines in your site's file in /etc/nginx/sites-enabled:
location / {
# there should be things in this block already, such as try_files
rewrite "^/([0-9a-zA-Z]{1,6})$" /location/of/redirect.php?url=$1 last;
}
And then assuming php works correctly, that should be it (after mysql is set up)
The text was updated successfully, but these errors were encountered:
Its not that difficult to figure out, but it would be awesome if the README described how this works with NGINX as well. Basically all you need to do is put these lines in your site's file in /etc/nginx/sites-enabled:
autoindex off;
location /shorten {
rewrite ^/shorten/(.*)$ /location/of/shorten.php?longurl=$1 break;
}
location / {
# there should be things in this block already, such as try_files
rewrite "^/([0-9a-zA-Z]{1,6})$" /location/of/redirect.php?url=$1 last;
}
And then assuming php works correctly, that should be it (after mysql is set up)
The text was updated successfully, but these errors were encountered: