Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter cjhmdm

    (@cjhmdm)

    It’s for a custom page. Sorry about that, I should have specified. Checking out your example now and will post back with results.

    Thanks

    edit css.php and change lines 2944-2951 from

    if ( $bfa_ata['css_compress'] == "Yes" AND
    !( isset($bfa_ata_debug) AND $bfa_ata['allow_debug'] == "Yes" ) ) {
    	ob_end_flush();
    }
    if ( isset($bfa_ata_preview) OR $bfa_ata['css_external'] == "Inline" OR
    ( isset($bfa_ata_debug) AND $bfa_ata['allow_debug'] == "Yes" ) ) {
    	echo "</style>\n";
    }

    to

    if ( $bfa_ata['css_compress'] == "Yes" AND
    !($bfa_ata_debug==1 AND $bfa_ata['allow_debug'] == "Yes" ) ) {
    	ob_end_flush();
    }
    if ( isset($bfa_ata_preview) OR $bfa_ata['css_external'] == "Inline" OR
    ($bfa_ata_debug==1 AND $bfa_ata['allow_debug'] == "Yes" ) ) {
    	echo "</style>\n";
    }

    Taken from: http://forum.bytesforall.com/showthread.php?t=14143

    kmessinger, it is indeed an issue with the actual theme, see below.

    Thread Starter cjhmdm

    (@cjhmdm)

    To be a little more specific, here are some actual directory structures that I need to maintain:

    site1.com/blog/
    site1.com/blog/wp-content/uploads/[static_files]

    site1.multi.com/blog/
    site1.multi.com/blog/wp-content/uploads/[static_files]

    Now, the above will not work, because if I simply create the physical directories:
    [root_of_multi]/blog/wp-content/uploads/[static_files]
    then:
    site1.multi.com/blog/ will not work because the directory /blog/ actually exists.

    So what would be better is if I could have all requests for

    site1.com/blog/wp-content/uploads/[static_files]

    rewrite/redirect vi .htaccess to

    site1.multi.com/files/uploads/[static_files]

    I don’t really need to maintain the physical directory structure if I can rewrite the requests

    Thread Starter cjhmdm

    (@cjhmdm)

    Yeah, I tried it after posting this thread, and it does work for the most part.

    There’s really only one problem, all my sites that I’m migrating into multisite have identical directory structures.

    Would it be possible, instead of creating the /some_files/ directory at the root, create them in each site’s respective …/blogs.dir/{ID}/files/some_files/ (this part is easy); and then have all requests for /some_files/ redirect to /files/some_files/ ? I’m sure it’s possible with either a rewrite rule, or a redirect.. just not sure how.

Viewing 5 replies - 16 through 20 (of 20 total)