2016-11-28 5 views
0

私はSSで新しく、1つのWebサイトを1つのWebホスティングからGodaddyに移動する必要があります。SilverStripeサブドメインの詳細ページがルートフォルダにリダイレクトされています

Irそうするには私のローカル環境のSSにルートフォルダをインストールしていて、すべてがスムーズに動作します。それから、私はサブドメインに行きました。 http://subdomain.domain.com.au/subdomain/index.php/products/tools/ - ITは ツールの詳細ページをWORKS:

ホームページ:: - - ITは 製品WORKSツールページをhttp://subdomain.domain.com.au/subdomain/index.php/例えばhttp://subdomain.domain.com.au/tools/show/slp20xpそれは動作しません。

私はこのURLに行く:http://subdomain.domain.com.au/subdomain/index.php/products/tools//show/slp20xpページがあり、正常に動作しています。どういうわけか、詳細ページでは、ルートフォルダに一歩前進しようとしています。このページをルートフォルダに移動すると、すべて正常に動作します。

何が不足していると思いますか?私は異なるhtacces設定を試みましたが、どれも動作していないようです。サブドメインのhtaccessファイルで

### 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 ### 

答えて

0

、私はそれを試してみましたが、それは同様に動作しませんでしたRewriteBase '/subdomain'

+0

RewriteBase '/'を変更してみてください。他のアイデア? – MANUELAN00

関連する問題