Skip to content

Commit 1ad6cdd

Browse files
Simran-Bnerpaula
andauthored
Separate folder and mount for static files (Netlify _redirects) (#416)
Co-authored-by: Paula Mihu <97217318+nerpaula@users.noreply.github.com>
1 parent a17a305 commit 1ad6cdd

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ Netlify supports server-side redirects configured with a text file
778778
This is helpful when renaming folders with many subfolders and files because
779779
there is support for splatting and placeholders (but not regular expressions). See
780780
[Redirect options](https://docs.netlify.com/routing/redirects/redirect-options/)
781-
for details. The configuration file is `site/content/_redirects`.
781+
for details. The configuration file is `site/static/_redirects`.
782782

783783
Otherwise, the following steps are necessary for moving content:
784784
1. Rename file or folder

site/config/_default/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ module:
1616
- source: "content/images"
1717
target: "assets/images"
1818

19+
- source: "static"
20+
target: "static"
21+
1922
markup:
2023
highlight:
2124
noClasses: false
File renamed without changes.

0 commit comments

Comments
 (0)