Make WordPress Core

Opened 13 years ago

Closed 13 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 Owned by: dd32
Priority: normal Milestone: 3.7
Component: Upgrade/Install Version:
Severity: minor Keywords:
Cc: Focuses:

Description

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

/index.php
/wp-config.php
/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
13 years ago

  • Component GeneralUpgrade/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]

Version 0, edited 13 years ago by SergeyBiryukov (next)

#2 @dd32
13 years ago

  • Milestone Awaiting Review3.7
  • Owner set to dd32
  • Status newaccepted

#3 @dd32
13 years ago

  • Resolutionfixed
  • Status acceptedclosed

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
13 years ago

  • Resolution fixed
  • Status closedreopened

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

#5 @dd32
13 years ago

  • Resolutionfixed
  • Status reopenedclosed

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.