0

对不起,如果这是一个重复的问题,但我不知道如何解决这个问题。

目前我在 /var/www/html 目录中有一个 wordpress 站点。这个 wordpress 站点与 Pydio 系统(企业安全文件共享)集成,就像子域一样。这两个系统都与一个名为 ajaxplorer 的插件链接。Pydio 系统位于 /var/www/html/pydio 目录中。所以,这个就像是 wordpress 网站的子目录。

当我导航到http://mysite.example/pydio时,一切正常......但是使用 pydio 系统,如果我导航到一些网址,例如:http://mysite.example/pydio/ws-inbox/然后,然后我刷新页面,它再次重定向到 wordpress 站点,但 URL 仍然相同:http://mysite.example/pydio/ws-inbox/,显示 wordpress 404 页面错误。(就像您在寻找帖子时一样)...所以我需要再次导航到http://mysite.example/pydio/才能再次访问 pydio 系统。

我想要的是,当我刷新 url: http://mysite.example/pydio/ws-inbox/时,它仍然在同一个 Pydio 系统中,并且不重定向到 wordpress。

我一直在搜索并尝试创建一个 .htaccess,(因为我的 WP 目录之前没有 .htaccess)但没有成功。

相反,Pydio 文件夹具有以下 .htaccess:

<IfModule mod_rewrite.c>
# You must set the correct values here if you want
# to enable webDAV sharing. The values assume that your
# Pydio installation is at http://yourdomain/
# and that you want the webDAV shares to be accessible via
# http://yourdomain/shares/repository_id/
RewriteEngine on
RewriteBase /dms
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^shares ./dav.php [L]
RewriteRule ^api ./rest.php [L]
RewriteRule ^ocs/ ./opencollab.php [L]
RewriteRule ^ocs-provider/ ./opencollab.php [L]
RewriteRule ^user ./index.php?get_action=user_access_point [L]
RewriteCond %{REQUEST_URI} !^/pydio/index
RewriteCond %{REQUEST_URI} !^/pydio/plugins
RewriteCond %{REQUEST_URI} ^/pydio/dashboard|^/pydio/settings|^/pydio/welcome|^/pydio/ws-
RewriteRule (.*) index.php [L]

#Following lines seem to be necessary if PHP is working
#with apache as CGI or FCGI. Just remove the #
#See http://doc.tiki.org/WebDAV#Note_about_Apache_with_PHP_as_fcgi_or_cgi

#RewriteCond %{HTTP:Authorization} ^(.*)
#RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

#Following lines may be necessary for a PHP-FPM setup
# to make sure that authorization is transmitted.
# Just remove the # at the beginning of the line

#SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

</IfModule>

AddType application/json .json

那么,也许有人知道我该如何解决这个问题?

提前致谢!

4

0 回答 0