Last modified: 2012-06-28 00:05:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35751, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33751 - redirects.conf should not hardcode HTTP
redirects.conf should not hardcode HTTP
Status: RESOLVED DUPLICATE of bug 31369
Product: Wikimedia
Classification: Unclassified
Apache configuration (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-16 11:26 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-06-28 00:05 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-01-16 11:26:41 UTC
Apache configuration for redirections ( redirects.conf ) always redirects user to the http:// scheme. Since we support SSL on most site, we should stick to whatever protocol was requested by the user.

Example of buggy redirection:

    RewriteCond %{HTTP_HOST} mediawiki.org
    RewriteRule ^/(.*)$ http://www.mediawiki.org/$1 [R=301,L]

Should either redirect to a relative URL ( //www.mediawiki.org ) or replace http with SERVER_PROTOCOL
Comment 1 Antoine "hashar" Musso (WMF) 2012-04-20 12:44:52 UTC
https://rt.wikimedia.org/Ticket/Display.html?id=2847
Comment 2 MZMcBride 2012-06-28 00:05:21 UTC

*** This bug has been marked as a duplicate of bug 31369 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links