Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24480 closed defect (bug) (fixed)

404 error when creating a new site when WP is in a subfolder

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by: dd32's profile dd32
Milestone: 3.7 Priority: normal
Severity: minor Version:
Component: Upgrade/Install Keywords:
Focuses: Cc:


With WP placed in a subfolder, i.e.:

/wp <-- WP in here

You get a 404 error when creating a site. It redirects you to /wp-admin/install.php instead of /wp/wp-admin/install.php

Change History (5)

#1 @SergeyBiryukov
11 years ago

  • Component changed from General to Upgrade/Install

Confirmed. When trying to install from the root URL, wp_guess_url() does not detect that WP is in the subdirectory. Installing from /wp/ works correctly though.

Related: [8182], [15680].

Last edited 11 years ago by SergeyBiryukov (previous) (diff)

#2 @dd32
11 years ago

  • Milestone changed from Awaiting Review to 3.7
  • Owner set to dd32
  • Status changed from new to accepted

#3 @dd32
11 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 25385:

When the WordPress files are in a subdirectory, correctly redirect the user to the setup-config.php page from the parent directories index.php. Fixes #24480

#4 @dd32
11 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

still need to cover the wp-admin/install.php redirect for when a wp-config.php file already exists.

#5 @dd32
11 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

In 25396:

Fix wp_guess_url() to work in every scenario I could find, allows us to use it to determine the correct path to the WordPress Site URL before installation for install.php and setup-config.php redirects. Fixes #24480 Fixes #16884

Note: See TracTickets for help on using tickets.