Skip to content

Commit

Permalink
Merge pull request #20 from iamwebrocker/fix-1and1-rewritecond
Browse files Browse the repository at this point in the history
Adjusts the 1&1 workaround to be more specific to the hosting platform to avoid false positives with other providers. Fixes #19
  • Loading branch information
kraftbj committed May 13, 2015
2 parents 0c888a6 + 5b4e789 commit b0c0f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -2774,7 +2774,7 @@ function wpsc_get_htaccess_info() {
$apache_root = '%{DOCUMENT_ROOT}';
}
$content_dir_root = $document_root;
if ( strpos( $document_root, '/kunden/' ) === 0 ) {
if ( strpos( $document_root, '/kunden/homepages/' ) === 0 ) {
// http://wordpress.org/support/topic/plugin-wp-super-cache-how-to-get-mod_rewrite-working-on-1and1-shared-hosting?replies=1
// On 1and1, PHP's directory structure starts with '/homepages'. The
// Apache directory structure has an extra '/kunden' before it.
Expand Down

0 comments on commit b0c0f45

Please sign in to comment.