nginx-regex-redirect

Matches any visit that ends in html, then redirects to http

rewrite ^(.*)\.html$ http://10.86.255.119$request_uri;

 

match any index? parameters like this, then redirect to the corresponding http

 rewrite ^(.*)index\.php\?$ http://10.86.255.119$request_uri;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325083122&siteId=291194637