I followed the GitHub documentation to create a custom 404 page( 404.html at the root ) for my GitHub Pages site, but it's not working. #62642
Replies: 4 comments 1 reply
-
Hey @JohnYang02182. I see your frustration with the redirection issue on GitHub Pages using Vite4. Since you've followed GitHub's custom 404 page setup and are encountering problems when reloading pages other than the index, consider these steps:
These measures should help address your redirection issue. If problems persist, feel free to share specific code snippets for further assistance. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I have found the solution. Thanks for your replication. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Problem:
I used Vite4 to bundle my code and deployed it to the GitHub page( custom domain ), and when I reloaded the page( except the index page ), it was then redirected to the 404 page. I have followed the GitHub documentation to create a custom 404 page, and it is still not working.
Mode: history mode.
Build and deployment: GitHub Actions.
Vite version: 4.3.5
Vue: 3.3.2
I would appreciate it if someone could tell me how to fix this issue.
Beta Was this translation helpful? Give feedback.
All reactions