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 11:21:05 UTC
[jira] [Created] (INFRA-9223) Create a .htaccess redirect
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.
{verbatim}
# 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]
{verbatim}
What is the correct way to create a redirect?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)