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] [Created] (INFRA-9223) Create a .htaccess redirect
Date Tue, 03 Mar 2015 10:21:05 GMT
Max Michels created INFRA-9223:

             Summary: 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
            Priority: Minor

I created the following .htaccess in our site website directory (Apache Flink). It doesn't
seem to get picked up.

# 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
RewriteRule /docs/0.7-incubating/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.7/$1
RewriteRule /docs/0.8/(.*) http://ci.apache.org/projects/flink/flink-docs-release-0.8/$1 
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]

What is the correct way to create a redirect?

This message was sent by Atlassian JIRA

View raw message