Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#10095 closed feature request (duplicate)

get_home_path() confused if "WordPress address" and "Blog address" slightly different.

Reported by: csixty4's profile csixty4 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Administration Keywords:
Focuses: Cc:


User has "WordPress address" (siteurl) set to and "Blog address" (home) set to Both are valid URLs.

get_home_path() in wp-admin/includes/file.php is trying to take the "home" address off the front of "siteurl" to get the path to .haccess. The "www." messes up the str_replace() call, and get_home_path() just returns "/" instead of the path to the WordPress files.

Additionally, user's server has open_basedir configured and gives error that "File(/) is not within the allowed path(s):" when is_writable($home_path) called in save_mod_rewrite_rules() (misc.php).

Told user to set both URLs to and it cleared up the problem.

Maybe add a warning message to the General admin screen if "siteurl" doesn't start with the URL from "home"?

Change History (2)

#1 @dd32
15 years ago

There has been mentions of mentioning the www. prefix mess there before...

But just a word of advice to people, Set them BOTH to the site url your actually using, is different from

#2 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

see #9873

Note: See TracTickets for help on using tickets.