Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Pirjo

    (@isokopir)

    Hi,

    Thank you for your advises. The problem is solved now. AllowOverride is ok on our new server. Today I noticed that .htaccess file’s name was changed when I transfered the files to the new server. It was after transfering htaccess. After I saved it on notepad inside apostrophes (“.htaccess”) I got the dot back.

    Br. Pirjo

    Thread Starter Pirjo

    (@isokopir)

    Hi,

    Thank you for your answer.

    I tried you asked me to do. But it didn’t help. My .htaccess is on the bootthrowing.net/blog/ -dicectory as it was on the old server. It is this kind:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /blog
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Br. Pirjo

    Thread Starter Pirjo

    (@isokopir)

    Okey, next time I’ll find it.

    Thread Starter Pirjo

    (@isokopir)

    You are right, I tested, I don’t need it. I removed the …plugins row. First I thought I need it because in some reason I can’t use EmbedIt plugin, when I’m signed in as admin, but it’s not so necessary. So we can forget it at least now.

    Everything else seems working now.

    This case can be closed.

    Thank you very much that you helped me.

    Thread Starter Pirjo

    (@isokopir)

    Hi!

    Thank you very much for helping me.

    Today I realized what is wrong. I have installed our WordPress on a subdirectory /blog. So I think the main fault have been on this row RewriteBase /. I’m sorry I didn’t realize this earlier.

    Now my .htaccess is similar you posted except the RewriteBase row and this RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*. I think I need it for plugins.

    Now my .htacess looks like this:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /blog
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Thread Starter Pirjo

    (@isokopir)

    Now I tested that with Google Chrome. The problem is same with it. So I think this does not depend on the web browser.

    Thread Starter Pirjo

    (@isokopir)

    No, I don’t have.

    Because I was not sure I tested it here
    https://www.htaccesstools.com/test-hotlink-protection/

    with this image
    https://bootthrowing.com/blog/rosentei/files/perunakellari.jpg

    Thread Starter Pirjo

    (@isokopir)

    Yes, first they show up once and when I use the refresh button of browser they are gone.

    Thread Starter Pirjo

    (@isokopir)

    Thank you for soon answer.

    Removing the row you advised didn’t help me.

    Just in case I review my problem: Images disappear when I use browser’s refresh button. That happen both on the published posts and on Media Libraty with thumbnails.

    I have IE 9. I’m going to test with Chrome in this night.

    Thread Starter Pirjo

    (@isokopir)

    Hi!

    Thank you for your instructions.

    I corrected that but it didn’t help me.

    I tried also add this in my .htaccess
    RewriteRule ^files/(.*)$ https://domain.com/wp-content/files/$1 [L,R=301]

    and I tried to enter the upload path on the following fields of wp_N_options table in database:
    upload_path (this was already earlier)
    upload_url_path
    fileupload_url

    Nothing of those didn’t help me.

    I have noticed that quite many have had problems with image displaying after upgrading from WPMU to 3.N. Do you know if somewhere are listed the most common solutions for this?

    Thread Starter Pirjo

    (@isokopir)

    Hi,

    I copied .htaccess from the page Ipstenu posted.
    I installed old WordPress MU in subfolder blog so I tried to add the row below into .htaccess for one site
    RewriteRule ^([_0-9a-zA-Z-]+/)?bootthrowing.com/blog/files/(.+) wp-content/blogs.dir/1/files/$2 [L]
    according this example
    RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
    I have still same broblem. What can I try now?

    Now my .htacess is this kind of

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?bootthrowing.com/blog/files/(.+) wp-content/blogs.dir/1/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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Thread Starter Pirjo

    (@isokopir)

    Below is a copy of my .htaccess

    RewriteEngine On
    RewriteBase BASE/
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    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>
Viewing 12 replies - 1 through 12 (of 12 total)