子目录

时间:2016-10-18 04:09:34

标签: php wordpress .htaccess nginx pydio

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

目前我在/ 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系统。

我想要的是当我刷新网址: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

所以,也许有人知道如何解决这个问题?

提前致谢!

0 个答案:

没有答案