Always set home_root in the rewrite rules. Dreamhost does not set the path for some reason. Props Joe Taiabjee

git-svn-id: https://develop.svn.wordpress.org/trunk@9516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2008-11-04 21:58:30 +00:00
parent 0623c49a93
commit d9b39736ba
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";