aaronmarkham commented on issue #12689: [WIP] Search update URL: https://github.com/apache/incubator-mxnet/pull/12689#issuecomment-438054343 There are two competing routes to make this move forward. The first is to add a second match to the regex so that anything /not-in-versions/ folder works, [as mentioned by Sina](https://github.com/apache/incubator-mxnet/pull/12689#discussion_r221328455). The second, and the route I started to take here, is to make sure everything is in /versions/. That requires a redirect on anything not in versions. Smartly done, it'll take your request to /api and move it the /versions/master/api, where master is what is set to be the default in htaccess and any root requests are forwarded... but it's not working...: ``` RewriteRule .* - [E=default_version:/versions/master] # other rules ... # finally, check and forward # Redirect any root requests to the default version RewriteRule ^(?!versions\/[0-9.master]+\/)(.*)$ %{ENV:default_version}/$1 [R=301,NC,L] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
