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:
markjaquith 2008-11-04 21:58:30 +00:00
parent fe4c1331fe
commit 54c602edee
1 changed files with 2 additions and 0 deletions

View File

@ -1633,6 +1633,8 @@ class WP_Rewrite {
$home_root = parse_url(get_option('home'));
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}
$rules = "<IfModule mod_rewrite.c>\n";