#795 need better redirect for nonexistent projects
Closed: Fixed None Opened 15 years ago by roland.

Using lajdlasjdlkasjd.fedorahosted.org gets redirected to fedorahosted.org/ajdlasjdlkasjd no matter that it's an unknown project name. That much is fine. But then fedorahosted.org/alsjdalkjdlajd just gets a generic "Environment not found" page from Trac,
which doesn't even explain that it's Trac or what that means at all.

Going to fedorahosted.org/unknwonstring should redirect to a page that says "there is no such project, see fedorahosted.org/web/about blah blah". Something coherent that makes it clear that it's not a random error, but that you asked for a project name and that project is not there.


Did some research on this.
The most elegant way to do it is mod_rewrite.
Still trying to figure out how fedorahosted.org mod_rewrite works, seems like the configs are in multiple pages.

A hacky way to do it , would be to hack trac itself to show the messages we want.

This is done now.

It shows a plain text page now. I have asked the web team to create a more elegant html, waiting on them now.

This is done now
A non-existent project points to a 410 page

Cool! s/request/requested/ though.

Oops, that'll be fixed in an hour or two, thanks.

Login to comment on this ticket.

Metadata