Replies: 1 comment 3 replies
-
This is a server configuration, not related with the static site. So the strategy for lume is simply create a _redirect file: export const url = "_redirect";
export default function () {
const lines = [];
for (const [from, to] of redirects) {
lines.push(`${from} ${to} 301`);
}
return lines.join("\n");
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my Hugo pages I have the ability to have a single markdown page be accessible through one or more "aliases" (basically redirects). Almost like "symlinks" so we don't duplicate the content in two URLs but one URL does an HTTP 302 redirect to another. What's Lume strategy for doing something similar.
For example, imagine I have
/my-site/users/shahid-shah
which I want to be a "friendly" alias or redirect to/my-site/users/1
which is the actual content page. How would I accomplish this?Beta Was this translation helpful? Give feedback.
All reactions