Skip to content
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

Fix https://eclipse.dev/eclipse redirect to 404.html #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

merks
Copy link
Contributor

@merks merks commented Mar 9, 2025

eclipse-equinox/equinox#895

- It currently redirects to https://www.eclipse.org/errors/404.html but
it would be better to redirect to portal, e.g.,
https://projects.eclipse.org/projects/eclipse.platform
- More correct would be https://projects.eclipse.org/projects/eclipse
but it's quite bogus in content.

eclipse-equinox/equinox#895
@merks
Copy link
Contributor Author

merks commented Mar 9, 2025

FYI, I have tested this with my local host which serves the PHP like this if specified explicitly:

image

But if I enter this:

image

it redirects:

image

I expect the real server also given precedence to the index.html and will provide the redirection.

In any case, we really should take some type of action to fix this problem and this file shows how we can generally redirect any page (folder) to a different page.

@merks merks requested a review from akurtakov March 9, 2025 14:30
@merks
Copy link
Contributor Author

merks commented Mar 9, 2025

@laeubi @chrisrueger @akurtakov

This simple pattern allows one to express a redirection simply by placing this index.html in any folder.

Clearly we need to think about how to revamp the overall site(s), but we should minimally repair the project root folders if the project website is still being used to populate the contents of dev.eclipse.org...

@laeubi
Copy link
Contributor

laeubi commented Mar 9, 2025

@merks this is only a HTML redirect, it would be better to has a real transport level redirect as a HTTP 301 as otherwise e.g. google search results are likely not updated or even get a penalty.

@merks
Copy link
Contributor Author

merks commented Mar 9, 2025

Yes, I understand that this is not the best way and that some .htaccess thing is apparently better. But I'm not sure we're allow to do that ourselves in the website repository. In any case, this is simply an improvement over the abomination that has been in place for months now and seems to have no sign of ever being addressed by anyone.

Maybe we're allowed to author an .htaccess ourselves. We can ask about that on this issue:

https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5722

@laeubi
Copy link
Contributor

laeubi commented Mar 9, 2025

Maybe we're allowed to author an .htaccess ourselves. We can ask about that on this issue:

For Tycho I asked the infra team and they set it up for the project.

@merks
Copy link
Contributor Author

merks commented Mar 9, 2025

For Tycho I asked the infra team and they set it up for the project.

I suspect that the fact that the content of this determines the contents of the website makes this a different beast:

https://github.com/eclipse-platform/www.eclipse.org-eclipse

But that's just a suspicion with no factual basis.

@akurtakov
Copy link
Member

Is this one still needed or problem will be handled in another way?

@merks
Copy link
Contributor Author

merks commented Mar 11, 2025

Apparently it could be handled in a different way by the foundation upon request, we could redirect like this, or we could create proper content at this page...

@akurtakov
Copy link
Member

So it's up to you (or whoever else works to improve it). Anything is better than current state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants