We have not set up .htaccess. Is that the issue?
Yes. Unlike singlesite, Multisite REQUIRES the use of .htaccess (or similar) redirection.
Thread Starter
pmpif
(@pmpif)
OK .htaccess set up and working. Now we are experiencing issues with images uploaded to the new blog. The links appear broken both after upload / on the blog.
for example:
http://czech.pmpif.org/?attachment_id=32
http://czech.pmpif.org/files/pmp_pressler1.jpg
is located in the ‘/wp-content/blogs.dir/2/files’ where it should be.
Could this be related to the .htaccess not being properly read?
I have read previous similar posts but couldn’t find a solution yet.
Thank you in advance!
Thread Starter
pmpif
(@pmpif)
# BEGIN WordPress
RewriteEngine On
RewriteBase /czech
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 . index.php [L]
# END WordPress
No, that’s correct.
WordPress stores the files in /wp-content/blogs.dir/NUMBER/files/etc/etc
It SHOWS the files in domain.com/files/etc/etc
That’s what this line is for:
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
http://czech.pmpif.org/files/pmp_pressler1.jpg works fine for me. As does http://czech.pmpif.org/?attachment_id=32
I see no problems here.
Thread Starter
pmpif
(@pmpif)
The issue was in .htaccess
We have fixed RewriteBase /czech to RewriteBase /
And everything has been running since!
Thanks for great support!!