You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Nextra to create a home page, an /index.mdx file is required to define the content. This setup results in two accessible URLs leading to the same content:
https://nextra.site/
https://nextra.site/index
This duplication can be confusing and may lead to potential SEO issues or unwanted behavior.
Steps to Reproduce
Create a new Nextra site or use an existing one.
Add an index.mdx file to define the home page content.
Access the home page via both https://nextra.site/ and https://nextra.site/index.
Expected Behavior
Only one URL should be accessible for the home page content, preferably https://nextra.site/.
Actual Behavior
Both https://nextra.site/ and https://nextra.site/index show the same home page content, leading to duplicate content accessibility.
Suggested Solution
Consider implementing a redirect or a mechanism to ensure that only one URL (e.g., https://nextra.site/) is accessible for the home page, and the other URL (https://nextra.site/index) is redirected or results in a 404 error.
The text was updated successfully, but these errors were encountered:
When using Nextra to create a home page, an
/index.mdx
file is required to define the content. This setup results in two accessible URLs leading to the same content:https://nextra.site/
https://nextra.site/index
This duplication can be confusing and may lead to potential SEO issues or unwanted behavior.
Steps to Reproduce
index.mdx
file to define the home page content.https://nextra.site/
andhttps://nextra.site/index
.Expected Behavior
Only one URL should be accessible for the home page content, preferably
https://nextra.site/
.Actual Behavior
Both
https://nextra.site/
andhttps://nextra.site/index
show the same home page content, leading to duplicate content accessibility.Suggested Solution
Consider implementing a redirect or a mechanism to ensure that only one URL (e.g.,
https://nextra.site/
) is accessible for the home page, and the other URL (https://nextra.site/index
) is redirected or results in a 404 error.The text was updated successfully, but these errors were encountered: