admin管理员组文章数量:1130349
I'm trying to setup a multisite environment with subdirectories and somehow I'm getting a "File not found." error every time I'm trying to access a .php file. It seems to work fine with all other file types and I tried to manually access files of different types in the same folder, so it seems to be something about that .php ending, that causes the problem.
I had the same problem before with css files, which was fixed by adding define('CONCATENATE_SCRIPTS', false); to wp-config.php, but that didn't fix the problems for php files.
It works fine for the main site, but all the subsites have the issue. The url pattern I'm using to access the files is [website_name]/test/wp-content/index.php.
This is my htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [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]
</IfModule>
# END WordPress
And this is my multisite section in wp-config.php:
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'fresenia.man.poznan.pl');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
I'm trying to setup a multisite environment with subdirectories and somehow I'm getting a "File not found." error every time I'm trying to access a .php file. It seems to work fine with all other file types and I tried to manually access files of different types in the same folder, so it seems to be something about that .php ending, that causes the problem.
I had the same problem before with css files, which was fixed by adding define('CONCATENATE_SCRIPTS', false); to wp-config.php, but that didn't fix the problems for php files.
It works fine for the main site, but all the subsites have the issue. The url pattern I'm using to access the files is [website_name]/test/wp-content/index.php.
This is my htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [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]
</IfModule>
# END WordPress
And this is my multisite section in wp-config.php:
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'fresenia.man.poznan.pl');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
本文标签: Multisites can39t load php files
版权声明:本文标题:Multisites can't load .php files 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749082100a2313205.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论