Skip to content

hakasenyang/php-shortlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-shortlink

Make shortlink for PHP

Example nginx configuration

server {
    listen 443 ssl http2;
    server_name hks.pw; # Fix domain

    root [directory];

    if (-f $request_filename) {
        break;
    }
    if (-d $request_filename) {
        break;
    }
    rewrite ^/(.+)$ /index.php?$1 last;
    error_page 404  = /index.php?$uri;

    include fastcgi.conf; # PHP Configuration
}

About

Make shortlink for PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages