Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate nginx 301 redirects for renamed files #9

Open
adam-cowley opened this issue Sep 3, 2020 · 0 comments
Open

Generate nginx 301 redirects for renamed files #9

adam-cowley opened this issue Sep 3, 2020 · 0 comments

Comments

@adam-cowley
Copy link
Collaborator

Currently when I rename a page, I add a :page-aliases: attribute, manually write the nginx rewrite rules and raise a PR on the neo4j.com.

It would be great if we could automatically raise a PR with the renamed/redirected files that have changed since the last build.

For example, moving /modules/ROOT/pages/cypher-basics-i.adoc to modules/cypher/pages/beginner.adoc would need the following added to src/nginx/includes/neo4j.com.redirects in the neo4j.com repo:

rewrite ^/developer/cypher-basics-i/$ /developer/cypher/beginner/ permanent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants