我剛剛意識到,如果您要在網站欄中手動輸入網站上不存在的頁面,則該站點會響應一個內部服務器錯誤。頁面不存在時發生內部服務器錯誤
是不是404頁面未找到?
我的網站是http://www.cristianrgreco.com,例如http://www.cristianrgreco.com/example將返回一個服務器錯誤。
這是我經常在遇到.htaccess文件時遇到的錯誤,所以我在下面張貼了我的。
RewriteEngine On
Options +FollowSymLinks
# Add WWW to URL
RewriteCond %{HTTP_HOST} ^cristianrgreco\.com$ [NC]
RewriteRule ^(.*)$ http://www.cristianrgreco.com/$1 [L,R=301]
# Remove trailing slashes from end of URL
RewriteCond %{HTTP_HOST} !^\.cristianrgreco\.com$ [NC]
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [L,R=301]
# Rewrite article URLs
RewriteRule ^articles/([a-zA-Z0-9_-]+)/?$ articles.php?article=$1
# Remove file extension from PHP files
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]
在此先感謝您的幫助。
您可以試試[臨站長(http://webmasters.stackexchange.com/)來代替。 –