I’m going to put the _redirects
file here for discussion:
/html/index.html / 200!
/html/about.html /about-bob-the-dent-guy 200!
/html/portfolio.html /portfolio 200!
/html/contact.html /contact-bob-the-dent-guy 200!
https://bobthedentguy.netlify.com https://www.bobthedentguy.com/html/index.html 301!
-
[line1] proxy rewrites the path
/html/index.html
to the root which means the path /html/index.html
will stay in the address bar and show the /index.html
content (incorrect?)
-
[line2] proxy rewrites the path
/html/about.html
to /about-bob-the-dent-guy
which means the path /html/about.html
will stay in the address bar and show the /portfolio/index.html
content (incorrect?)
-
[line3] proxy rewrites the path
/html/portfolio.html
to /portfolio
which means the path /html/portfolio.html
will stay in the address bar and show the /portfolio/index.html
content (incorrect?)
-
[line4] proxy rewrites the path
/html/contact.html
to /contact-bob-the-dent-guy
which means the path /html/contact.html
will stay in the address bar and show the /contact-bob-the-dent-guy/index.html
content (incorrect?)
-
[line5] redirects
https://bobthedentguy.netlify.com
to https://www.bobthedentguy.com/html/index.html
Can you define what you want to happen?
In example, give the condition of what the user will type into the address bar then what will happen for each use case.
User types in address bar: /html/index.html
Result: <explain that here>
Explanation of 200
The 200
is used for proxy rewrites and does not redirect to the result path. A 200
tells the CDN to keep the path in the address bar, but show the target path as the response.