[ 
https://issues.apache.org/jira/browse/SOLR-16188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545505#comment-17545505
 ] 

Houston Putman commented on SOLR-16188:
---------------------------------------

I think this issue is fine to close. We are now using the "9_0" -> "latest" 
mapping, so the 301 will be pointing "/guide/index.html" -> 
"/guide/solr/latest/index.html" that is safe to permanently redirect.

Note: We do not currently use the second mapping, but I think we should 
definitely start using it, much better than having a page that lists all of the 
ref-guide versions. (something you can select via the new ref guide's home page)

> Antora generates wrong .htaccess file
> -------------------------------------
>
>                 Key: SOLR-16188
>                 URL: https://issues.apache.org/jira/browse/SOLR-16188
>             Project: Solr
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Jan Høydahl
>            Priority: Major
>
> Spinoff from [https://github.com/apache/solr-site/pull/77]
> When running
> {code:java}
> ./gradlew buildOfficialSite {code}
> there is a {{.htaccess}} file generated in 
> {{solr/solr-ref-guide/build/site/.htaccess}} with antora-generated redirects 
> for things like "latest" links and page renames. On branch_9_0 antora 
> currently generates this file
> {code:java}
> Redirect 302 /guide/solr/latest /guide/solr/9_0
> Redirect 301 /guide/index.html /guide/solr/9_0/index.html {code}
> I believe the first line is ok, but the seconds one is wrong, as the 
> {{/guide/index.html}} is managed by our website, not refguide, and there 
> should not be a permanent redirect to a specific version.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to