www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Michels (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (INFRA-9223) Create a .htaccess redirect
Date Tue, 03 Mar 2015 11:47:04 GMT

     [ https://issues.apache.org/jira/browse/INFRA-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Max Michels updated INFRA-9223:
-------------------------------
    Description: 
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?

  was:
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?


> 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)

Mime
View raw message