2014-05-23 159 views

回答

0

我解决了这个问题: try_files $ URI/$ URI /index.html?$query_string

0

请这给一试。这会将/(.+)重写为/index.html?id=$1

rewrite ^/(.+)$ /index.html?id=$1 last; 
+0

我得到500内部服务器错误,当我输入www.somedomain.com时,为什么? – user3355127

+0

请发布您的配置 –

0

试试这个,(使用无限的名称)

location/{ 
    rewrite^http://www.example.com/users/$arg_id permanent; 
}