0

yiiサイトがあります。しかし、URLパスがwww.mysite.com/djangoまたはサブドメインwww.django.mysite.comのページを提供するためにdjangoが必要です。サーバーにはfastcgiがインストールされており、共有サーバーです。

クリーンURLのindex.phpを削除したため、yiiの.htaccessファイルは次のようになります(wwwフォルダーにあります)。



    Options +FollowSymLinks
`   IndexIgnore */*
    RewriteEngine on

    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # otherwise forward it to index.php
    RewriteRule . index.php

4

1 に答える 1

0

共有サーバーとは、有料ホストを意味しますか? 本当の問題は、apache conf にアクセスできるかどうかです。アクセスできない場合は、django 用に VirtualHost を挿入するようにホストに丁寧に依頼できますか。

于 2013-01-19T08:00:10.187 に答える