You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Max Michels (JIRA)" <ji...@apache.org> on 2015/03/03 14:33:04 UTC
[jira] [Resolved] (INFRA-9223) Create a .htaccess redirect
[ https://issues.apache.org/jira/browse/INFRA-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Michels resolved INFRA-9223.
--------------------------------
Resolution: Implemented
> Create a .htaccess redirect
> ---------------------------
>
> Key: INFRA-9223
> URL: https://issues.apache.org/jira/browse/INFRA-9223
> Project: Infrastructure
> Issue Type: Task
> Components: Website
> Reporter: Max Michels
>
> I created the following .htaccess in our site website directory (Apache Flink). It doesn't seem to get picked up.
> {{monospaced}}
> # redirect rules to prevent old links from breaking
> RewriteEngine On
> RewriteRule /docs/0.6-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.6/$1 [R=301,L,NE]
> RewriteRule /docs/0.7-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.7/$1 [R=301,L,NE]
> RewriteRule /docs/0.8/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.8/$1 [R=301,L,NE]
> RewriteRule /docs/latest/(.*) http://ci.apache.org/projects/flink/flink-docs-master/$1 [R=301,L,NE]
> RewriteRule /docs/(.*) http://ci.apache.org/projects/flink/flink-docs-master/$1 [R=301,L,NE]
> {{monospaced}}
> What is the correct way to create a redirect?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)