-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Response is 404 - Can You Fix it #38
Comments
Waiting for your response with the solution.... |
Thank you for pointing out this problem. I didn't realized this before. I have searched but it seems that for GitHub Pages it's is not possible to change the status code... With a custom server it should be possible to server as 200 for all not-found requests: Also, if we use other hosting service other than GitHub Pages, like Vercel and Cloudflare, it may be possible to do this trick. However, that's gonna make things messy... Basically, the 404 mainly occurs in two places:
For the main page, I have added For the embedding page, I still have no clean methods with GitHub Pages. But I believe 200 for the main page would be enough. What do you think? |
I think for ranking your site (emgithub) on Google. You should try google search console + analytics. ( because this gem deserves to be popular ) And I made ArticlePlanet Taking Inspiration from dev.to for Markdown Article. But My Articles wasn't ranking I thought it's because I'm loading content dynamically using GitHub API. But for me I have to rank all pages of the ArticlePlanet. See This URL is being ranked. https://articleplanet.github.io/post.html?id=73486096e84d29a730fb3a9a827ee893 (200 Response ) Now, If you want then you may show some solution to me also maybe by using the second solution approach I shown you i.e.
means can we build custom URLs without using this technique o "GitHub Pages". (i.e. jekyll, cofigyml, workflow, actions, etc) and if it's not possible the you said about the tricks for other hosting.
You can also show some way for that :) if you want waiting for your response (eagerly) . |
Sorry but I have no experience with Vercel or Cloudflare, so I don't know how to do the trick with them 😞 |
The server is responding the page as 404
because you are serving it from 404.html of GitHub Pages and I know it doesn't create a big impact on this type of website but for making a content site like blogging website google doesn't index the 404 pages and that's why your website https://emgithub.com/ is not on google search results.
Solution Approach
The text was updated successfully, but these errors were encountered: