4

EasyPHP と .htaccess について助けが必要です。

.htaccess ファイルが機能していません。EasyPHP で何かをセットアップしていないためだと思います。

私のEasyPHPのバージョンは5.3.8.1 です

多分誰もがこの問題を解決する方法を知っていますか?

.htaccess ファイル:

Options +FollowSymlinks

RewriteEngine on

RewriteRule ^get/([^/]+) /func/get.php?link=$1 [NC]

4

2 に答える 2

8

EasyPHP での Apache のデフォルト インストールでは、.htaccess ファイルを使用してフォルダー内のサーバー構成を変更するオプションがアクティブ化されていません。

Apache に、.htaccess ファイルで変更できる構成と、どのフォルダーで変更できるかを伝える必要があります。メイン Web サーバーですべての構成変更を有効にするには、http.conf (Apache/conf フォルダー内) を編集して、次を探す必要があります。

<Directory "${path}/www">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

</Directory>

変更する

    AllowOverride None

    AllowOverride All

微調整するには、AllowOverrideに関するドキュメントを参照してください: http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

また、http.conf で mod_rewrite が有効になっていることを確認し、以下を探します。

#LoadModule rewrite_module modules/mod_rewrite.so

先頭の「#」を削除します

LoadModule rewrite_module modules/mod_rewrite.so
于 2012-09-10T10:56:31.673 に答える
1

ローカル Web サイトで作業しているときに、Web サイトのパス (.htaccess を使用) を仮想ホストとして追加することで、この問題を修正しました。Easyphp には、このためのモジュールがあります: 'Virtual Hosts Manager'これにより、 httpd.confが自動的に処理されます。

于 2013-07-03T23:48:47.720 に答える