Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 423067

Summary: Possibility to configure HTTP redirects?
Product: Community Reporter: Andreas Sewe <sewe>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy, johannes.dorn, marcel.bruch, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Andreas Sewe CLA 2013-12-03 12:00:30 EST
Hi, the Eclipse Code Recommenders project recently restructured (and simplified) its website [1].

Now, the old page offered some URLs like <http://eclipse.org/recommenders/download/> which the new one doesn't. But the new one has a close analogue: <http://eclipse.org/recommenders/download.html>. Is there an easy way to configure redirects (preferably of the 301 "Moved permanently" variety), so that existing links won't break.

.htaccess with Redirect directives perhaps?

[1] <http://eclipse.org/recommenders/>
Comment 1 Denis Roy CLA 2013-12-03 13:13:04 EST
If you list the redirects you'd like, we will add them to the server config file.
Comment 2 Johannes Dorn CLA 2013-12-04 02:04:12 EST
Hi Denis,

here are our redirects from old to new.

download -> download.html
features -> manual.html#completion-engines
documentation -> manual.html
support -> community.html
developers -> community.html
resources -> community.html

All old ones should also include any and all subpages, so documentation/foo should also link to manual.html

Should we wish to further change URLs in the future, is there a way to configure these redirects ourselves? It seems odd to always bother Eclipse webmasters.
Comment 3 Johannes Dorn CLA 2013-12-04 02:04:52 EST
*** Bug 423109 has been marked as a duplicate of this bug. ***
Comment 4 Denis Roy CLA 2013-12-04 11:35:45 EST
We'll add your redirects shortly.

> Should we wish to further change URLs in the future, is there a way to
> configure these redirects ourselves? It seems odd to always bother Eclipse
> webmasters.

I would like to believe that changing URLs is an exceptional case, not something you do regularly.  FWIW, you can create your own redirects for individial pages.  On PHP pages, use the header("location: newurl") directive and in .html pages you can use a META refresh.
Comment 5 Eclipse Webmaster CLA 2013-12-05 11:07:22 EST
I've added the redirects and deployed them.

-M.
Comment 6 Johannes Dorn CLA 2013-12-06 04:45:38 EST
Great, thank you very much!

Regarding future updates, we may be changing to dynamic php instead of static html files at some point.

Is it possible to configure the server so that it tries out different file endings for an URL?

I. e. if a user goes to eclipse.org/recommenders/foo, the server will first try to serve a foo.pho, if that doesn't work a foo.html.


Thanks again
Comment 7 Denis Roy CLA 2013-12-06 08:53:20 EST
> I. e. if a user goes to eclipse.org/recommenders/foo, the server will first
> try to serve a foo.pho, if that doesn't work a foo.html.

You can do that now.  Create a directory called "foo" and either put an index.php, index.html or index.htm and they will be searched for, in that order.


> Is it possible to configure the server so that it tries out different file
> endings for an URL?

Possible, yes. Unfortunately, that kind of guesswork had performance impacts on high-traffic websites.  Since PHP can serve both static html and dynamic PHP content, why not create PHP from the start?