[wp-trac] [WordPress Trac] #21573: NOBLOGREDIRECT interfering with 404 errors

WordPress Trac noreply at wordpress.org
Fri Mar 20 02:51:25 UTC 2015


#21573: NOBLOGREDIRECT interfering with 404 errors
----------------------------+-----------------------------
 Reporter:  bungeshea       |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Bootstrap/Load  |     Version:  3.4.1
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  multisite
----------------------------+-----------------------------

Comment (by Jornes83):

 Replying to [ticket:21573 bungeshea]:
 > When the `NOBLOGREDIRECT` constant is defined, 404 pages on the main
 site will not work and instead redirect to URL defined in
 `NOBLOGREDIRECT`. This is the cause of the `maybe_redirect_404`
 action/function, which is not needed and should be removed.

 Now, I removed the line of NOBLOGREDIRECT in my wp-config file and the
 error page on main site is working but the link must be together with www
 or else it turns out to this url http://www.example.my/wp-
 signup.php?new=example.com when i type any url without "www". I tried to
 fix this with .htaccess file to make it work. But, it would affect all the
 subdomain redirect to www as well. Example result: www.sub1.example.com. I
 don't want this happen to my sub domain. Any php code i can implement into
 wp-config to get this resolved?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21573#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list