mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-25 17:51:27 +01:00
Always set home_root in the rewrite rules. Dreamhost does not set the path for some reason. Props Joe Taiabjee
git-svn-id: http://svn.automattic.com/wordpress/trunk@9516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fe4c1331fe
commit
54c602edee
@ -1633,6 +1633,8 @@ class WP_Rewrite {
|
|||||||
$home_root = parse_url(get_option('home'));
|
$home_root = parse_url(get_option('home'));
|
||||||
if ( isset( $home_root['path'] ) ) {
|
if ( isset( $home_root['path'] ) ) {
|
||||||
$home_root = trailingslashit($home_root['path']);
|
$home_root = trailingslashit($home_root['path']);
|
||||||
|
} else {
|
||||||
|
$home_root = '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$rules = "<IfModule mod_rewrite.c>\n";
|
$rules = "<IfModule mod_rewrite.c>\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user