Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter [email protected]

    (@guidoredgmailcom)

    OK! … it works!!! … You are right. I’m wrong. Bit is not just put this line … is where do you must put it inside the .htaccess file … I needed to read the document on https://www.onextrapixel.com/2011/07/07/the-ultimate-wordpress-multi-site-network-management-guide/ to figure out where it must be added.

    My new .htaccess has now:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files per user
    # RewriteRule ^([_0-9a-zA-Z-]+/)?guido/files/(.+) wp-content/blogs.dir/3/files/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    So. To all that has the same trouble … that’s the fix!. But, ups… the oz-menu manager for network has links broken still … that’s another history to tell!

    Thread Starter [email protected]

    (@guidoredgmailcom)

    No, I don’t. Sorry, I readed that before (earlier to the decision of write this), I added that before (prior to version on the previous message), tested, and didn’t work (disposed). Also in all the read process I found a lecture that talk about the ms-files. It states they are ignored by new versions (3.5+).

    So, this point is irrelevant, and the statment about broken code stays as the main topic.

    Any suggestion?.

    OK, lets implement something different and new. Lets asume that some wp-variables are involved in the process to decide how to translate the wp-url to the site-url path. Someone knows exactly wich ones are in 3.5+ code?. Once stablished wich ones I can trace it in the code.

    You can manually set this to the same linking wp-content/blogs.dir with wp-content/uploads/sites (if you know Unix-linux ln command).

    In my experience (i’m not a pro) the problem are in the database fields and the wp-default fields … one set wp-content/uploads/sites/id/files/year/month (default) and the other to the old style (3.4-) wp-content/blogs.dir/id/files/year/month (data-base fields) … if you use a year-month set.

    Why this, don’t know, is something that I’m trying to resolve too!

    Thread Starter [email protected]

    (@guidoredgmailcom)

    I appreciate a lot the quick answer, but I need to repeat, I had readed a lot, even that document (and others) from where I found the rewrite rule to make it works for a particular subsite.

    And yes, I know that configuration and urls are right (that’s not wrong) since they are the expected ones. The wrong is the code that doesn’t match one with the proper other. More explicity:

    WP Multisite url -> https://site/subsite/files/doc with wp-content/blogs.dir/id/files/year/month … it allways fail! … some where this match its not well created. And why I assume that, just because the rawrite rule I must add to fix this manually that efectively do that.

    More data on this, My .htaccess …

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files per subsite
    RewriteRule ^([_0-9a-zA-Z-]+/)?guido/files/(.+) wp-content/blogs.dir/3/files/$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    And I can add two new data fields, the network management site’s fields for multisite guido:
    Upload Path: wp-content/blogs.dir/3/files
    Fileupload Url: https://academia.uaa.mx/files

    Fileupload had been changed to ../guido/files, ../guido/uploads (nothing) and nothing fix the broken links.

    Personaly, I think the first is used a lot because the upload works fine until it’s changed … but the second, you can change it, erase it, or set it by default and no links to multimedia works, all the links stay broken.

    Other tip. I used a download plugin to make the links work and efectively, they work through the download link, avoiding the url transform process, but it’s not the fix that needs to be done.

    Any idea?

    Thread Starter [email protected]

    (@guidoredgmailcom)

    Thats mean that using “[calendar]” we can get the minicalendar?, so if that is true, and we also want to have the full calendar, how we can do to have working “[minicalendar] and “[calendar]” in diferent ways?

    The objetive is to present the minicalendar with days remarked on events and linked to a page with all events in that day. Is that possible?

    Thread Starter [email protected]

    (@guidoredgmailcom)

    Perhaps i can help to do it, and if i can have some guidance from you, I can make de propper code in php, not sure about css.

Viewing 7 replies - 1 through 7 (of 7 total)