Use 200 proxy redirects for silent URL forwarding
This commit is contained in:
parent
f478bd6f0a
commit
f872c83c63
2 changed files with 16 additions and 16 deletions
|
|
@ -16,7 +16,7 @@ const entries = fs.readdirSync(contentDir, { withFileTypes: true });
|
|||
for (const entry of entries) {
|
||||
if (entry.isDirectory()) {
|
||||
const slug = entry.name;
|
||||
redirects.push(`/${slug} /blog/${slug} 301`);
|
||||
redirects.push(`/${slug} /blog/${slug} 200`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue