SilverStripe子域的详细信息页面正在重定向到根文件夹

问题描述:

我是SS中的新成员,我需要将一个网站从一个虚拟主机移到Godaddy。SilverStripe子域的详细信息页面正在重定向到根文件夹

为了做到这一点,我已经在根文件夹中的本地环境中安装了SS,并且一切正常。然后我去了子域,除了详细信息页面外,几乎一切正常。例如:

主页:http://subdomain.domain.com.au/subdomain/index.php/ - IT WORKS 产品 - 工具页:http://subdomain.domain.com.au/subdomain/index.php/products/tools/ - IT WORKS 工具详情页:http://subdomain.domain.com.au/tools/show/slp20xp这是行不通的。

如果我去这个网址:http://subdomain.domain.com.au/subdomain/index.php/products/tools//show/slp20xp该页面在那里,工作正常。不知何故,在详细信息页面上试图向后退到根文件夹。如果我将此页面移动到根文件夹,一切正常。

任何想法可能会失踪?我尝试了不同的htacces配置,但它们都不起作用。

### SILVERSTRIPE START ### 
<Files *.ss> 
Order deny,allow 
Deny from all 
Allow from 127.0.0.1 
</Files> 

<Files web.config> 
Order deny,allow 
Deny from all 
</Files> 

# This denies access to all yml files, since developers might include sensitive 
# information in them. See the docs for work-arounds to serve some yaml files 
<Files *.yml> 
Order allow,deny 
Deny from all 
</Files> 

ErrorDocument 404 /assets/error-404.html 
ErrorDocument 500 /assets/error-500.html 

<IfModule mod_alias.c> 
RedirectMatch 403 /silverstripe-cache(/|$) 
RedirectMatch 403 /vendor(/|$) 
RedirectMatch 403 /composer\.(json|lock) 
</IfModule> 

<IfModule mod_rewrite.c> 
SetEnv HTTP_MOD_REWRITE On 
RewriteEngine On 
RewriteBase '/' 

RewriteCond %{REQUEST_URI} ^(.*)$ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_URI} !\.php$ 
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L] 
</IfModule> 
### SILVERSTRIPE END ### 

子域中的htaccess的,请尝试更改RewriteBase '/'RewriteBase '/subdomain'

+0

我已经试过了,但它并没有正常工作。任何其他想法? – MANUELAN00