Forums

Cannot find files (2 posts)

  1. leonfcs
    Member
    Posted 3 months ago #

    Hi, Thanks for help.
    I've just migrated a couple of WP Multisite to a new server (Bluehost) but I having some issues with one of them. Old post's images are lost and if I upload a new one it returns this url http://chinca.org.co/files/2012/01/mantenimiento3.jpg but the file is actualy in the right folder (blogs.dir/1/files/2012/01) so the .htaccess redirecting isn't working.

    Also adding a new post, after pressing Publish button, i've been redirecting to a blank page (http://chinca.org.co/wp-admin/post.php) but the post is created.

    This is my .htaccess:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteCond %{REQUEST_URI} !^/?campus/
    
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Any ideas? Thanks for your help

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 3 months ago #

    Ask your new host if allowOverride is set to all.

Reply

You must log in to post.

About this Topic