Skip to content

Instantly share code, notes, and snippets.

@erasin
Created May 6, 2016 03:33
Show Gist options
  • Save erasin/2973729519da24a2bb1e07333898c5c2 to your computer and use it in GitHub Desktop.
Save erasin/2973729519da24a2bb1e07333898c5c2 to your computer and use it in GitHub Desktop.
当空间服务器不支持PATH_INFO中,如果可以配置路由重写,将php地址进行重写处理
rewrite ^/index\.php(.*)$ /index.php?s=/$1 last;
rewrite ^/en/index\.php(.*)$ /en/index.php?s=/$1 last;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment