0

私は理解できない複雑な問題を抱えています。/etc/apache2/sites-enabledの000-defaultファイルを変更することで、この問題を解決できます。

AllOverride行には、次のキーワードNoneを残す必要があります。

<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None Order allow,deny
allow from all
</Directory>

Drupal 7 の Debian サーバーでクリーン URL を有効にする他の方法はありますか?

4

1 に答える 1

1

プロジェクト ルートで .htaccess ファイルを開きます。コメントRewriteBase /drupalを外して、 のようなプロジェクト名に変更しますRewriteBase /myprojectname。コメントRewriteBase / /admin/config/search/clean-urls に移動します Enable clean URLs のオプションがあります。

于 2013-07-02T08:24:10.603 に答える