[ https://issues.apache.org/jira/browse/SOLR-10930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057737#comment-16057737 ]
Steve Rowe edited comment on SOLR-10930 at 6/21/17 3:54 PM: ------------------------------------------------------------ {{/java($|/.*)}} still isn’t completely right though, since it’ll match trailing {{/java(/whatever)}} instead of restricting to the beginning of the path. Judging from the example here [https://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirectmatch] the {{RedirectMatch}} regex applies to the path (not the whole url), so adding a {{\^}} to the beginning of the regex should restrict it properly: {{^/java($|/.*)}} (The initial regex I gave should work for the problem at hand; adding the caret should protect against future paths with {{/java/}} in the middle.) was (Author: steve_rowe): {{/java($|/.*)}} still isn’t completely right though, since it’ll match trailing {{/java(/whatever)}} instead of restricting to the beginning of the path. Judging from the example here [https://httpd.apache.org/docs/2.4/mod/mod_alias.html#redirectmatch] the {{RedirectMatch}} regex applies to the path (not the whole url), so adding a {{\^}} to the beginning of the regex should restrict it properly: {{^/java($|/.*)}} (The initial regex I gave should work for the problem at hand; adding the caret should protect against future paths with {{/java/}} in the middle. > Ref Guide for Java Properties redirect to invalid page > ------------------------------------------------------ > > Key: SOLR-10930 > URL: https://issues.apache.org/jira/browse/SOLR-10930 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Affects Versions: 6.6 > Reporter: Mykhailo Kozik > Assignee: Cassandra Targett > Priority: Minor > > When clicking on "Java Properties" paragraph from the ref guide > http://lucene.apache.org/solr/guide/6_6/java-properties.html > it redirects to non-existent page > http://lucene.apache.org/core-properties.html > !http://i.imgur.com/1DxLZJX.jpg! -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org