Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#25802 closed defect (bug) (duplicate)

Unexpected redirect if you try to visit non-existant wp-admin (Multisite)

Reported by: Ipstenu Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Bootstrap/Load Keywords:
Focuses: multisite Cc:


If you go to domain.com/FAKESITE/wp-admin (or FAKESITE.domain.com/wp-admin) , you get redirected to the main site's wp-admin (or the login page to go there if not logged in).

This doesn't match what happens when we go to domain.com/FAKESITE where it says "No such site.'

Of note, NOBLOGREDIRECT works as expected in this case, and sends you where ever you told it to go to.

Attachments (1)

patch.diff (647 bytes) - added by VarunAgw 8 years ago.

Download all attachments as: .zip

Change History (6)

#1 @jeremyfelt
8 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 3.9

I think http://domain.com/invalid-site/wp-admin/ should redirect to http://domain.com/ and drop the wp-admin attempt.

Somewhat related, #26407. Theoretically a primary network could be defined one day as well to replace http://domain.com/ as the next in line.

Moving to 3.9 for discussion.

#2 @jeremyfelt
8 years ago

  • Component changed from Multisite to Bootstrap/Load
  • Focuses multisite added

This ticket was mentioned in IRC in #wordpress-dev by VarunAgw. View the logs.

8 years ago

8 years ago


This ticket was mentioned in IRC in #wordpress-dev by VarunAgw. View the logs.

8 years ago

#5 @jeremyfelt
8 years ago

  • Keywords needs-patch removed
  • Milestone 3.9 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @VarunAgw, thank you for taking the time to submit a patch!

Unfortunately, as you may have seen in IRC, the discussion led to the discovery of another duplicate ticket that more progress has been made against - #17376.

Can you test that patch out and comment over there? Thanks!

Note: See TracTickets for help on using tickets.