enwikipedia-acc / waca

English Wikipedia Account Creation Interface
https://accounts.wmflabs.org/internal.php
The Unlicense
33 stars 43 forks source link

Redirection script #49

Closed stwalkerster closed 10 years ago

stwalkerster commented 11 years ago

Write a simple but effective redirection script to redirect users from the toolserver to labs

FastLizard4 commented 11 years ago

Working on this at https://github.com/enwikipedia-acc/drunken-octo-nemesis

FunPika commented 11 years ago

I haven't thought this completely through yet (or even know what HTTPD the TS runs/if this will work with it) since I just woke up, but wouldn't a .htaccess file using the Redirect Directive to give users a 301 work?

Manishearth commented 11 years ago

It should :)

stwalkerster commented 11 years ago

Does that work with ZWS?

On 24 May 2013 11:55, Manish Goregaokar notifications@github.com wrote:

It should :)

— Reply to this email directly or view it on GitHubhttps://github.com/enwikipedia-acc/waca/issues/49#issuecomment-18396127 .

FunPika commented 11 years ago

Just tested it (redirected sand to the non-existent https://tools.wmflabs.org/acc/sand/).

A .htaccess file with this line should work for live:

Redirect 301 /~acc/ https://tools.wmflabs.org/acc/

And for sand:

Redirect 301 /~acc/sand/ https://tools.wmflabs.org/acc/sand/
stwalkerster commented 11 years ago

is that good for all the url parameters too?

On 24 May 2013 12:13, FunPika notifications@github.com wrote:

Just tested it (redirected sand to the non-existent http://tools.wmflabs.org/acc/sand/).

A .htaccess file with this line should work for live:

Redirect 301 /~acc/ https://tools.wmflabs.org/acc/

And for sand:

Redirect 301 /~acc/sand/ https://tools.wmflabs.org/acc/sand/

— Reply to this email directly or view it on GitHubhttps://github.com/enwikipedia-acc/waca/issues/49#issuecomment-18396853 .

FunPika commented 11 years ago

Yes, https://toolserver.org/~acc/sand/acc.php?action=logs&user=FunPika&logaction=Suspended redirected to https://tools.wmflabs.org/acc/sand/acc.php?action=logs&user=FunPika&logaction=Suspended as an example.

FastLizard4 commented 11 years ago

Well, I guess my script isn't needed anymore :P