5

ファイルとデータベースをBradPPresents.comからBradP.comにコピーしました。

joomla! によって「プリティ URL」が有効になっているため、ページを適切に表示するには .htaccess ファイルが必要です。

データベースとすべての接続がhttp://bradp.com/index.phpで機能していることがわかりますが、http://bradp.com/home.htmlは機能しません。 URL。

同一の htaccess ファイルを bradppresents.com (現在は正常に動作) から bradp.com にコピーしたところ、ファイルが存在するときに「内部サーバー エラー」が発生しました。削除するとすぐにエラーは消えますが、もちろんサイトは必要に応じて機能しません。

誰かが私のためにこれに少し光を当ててくれることを願っています.

ここに.htaccessファイルがあります

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|\.aspx|\.asp|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]

#max files size restrictions
php_value upload_max_filesize 20M
php_value post_max_size 20M

これは Apache のサイト構成ファイルです。

<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /home/nick/public_html/bradp.com/html/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /home/nick/public_html/bradp.com/html/>
                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 /var/log/apache2/error.log

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

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

これは基本的に、いくつかの変更を加えたデフォルトのファイルです。

私が得ることができる助けに本当に感謝しています。ありがとう、ニック

4

1 に答える 1

8

エラー ログを調べて、正確なエラー メッセージを確認してください。

しかし、最初の文で「コピーされた」と言っているので、あるホストから別のホストに移動していると思います。最も可能性の高い原因は、rewriteモジュールが新しいサーバーにロードされていないことです。

于 2009-02-13T10:16:44.103 に答える