0

linuxmint 15 で mod_rewrite を有効にしましたが、.htaccess が機能しません。これが私のApache構成です

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/xampp/htdocs
    <Directory />
            Options FollowSymLinks
            AllowOverride All
    </Directory>
    <Directory /var/www/xampp/htdocs/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

助けてください。情報が必要かどうか私に尋ねてください。

また、ここに私のhtaccessファイルがあります

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /mehedi.php [L]
</IfModule>

htaccess ファイルは「/var/www/xampp/htdocs/」ディレクトリにあります。

ありがとうございました

4

2 に答える 2

0

Apache エラー ログに役立つものはありますか? 設定されているオプション ディレクティブがないか、httpd.conf を確認することをお勧めします。AllowOverride のオプションが None に設定されているか、構成した DocumentRoot より上のディレクトリに対して「すべて」以外に設定されている可能性があります。これがお役に立てば幸いです -- 頑張ってください!

于 2013-06-15T00:07:44.187 に答える