我最近从旧的 GoDaddy 托管帐户转移到了新的 GoDaddy Cpanel 托管帐户。
网站上的菜单是使用 php include 语句生成的,该语句在旧托管帐户上有效。但是,在这个新托管上,php include 语句不起作用,如果您单击网站上的链接,则会打开保存文件的对话框,而不是打开网页的 html 链接。服务器是 Deluxe Linux Hosting,带有 cPanel,运行 Apache php 5.3。这是在旧托管帐户上运行的 htaccess,我该如何解决这个问题?
#simple ETag
FileETag MTime Size
# Turn on the Expires engine
ExpiresActive On
# Expires after a month client accesses the file
ExpiresByType image/jpeg A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType text/plain A2592000
# Good for one week
ExpiresByType application/x-javascript M604800
ExpiresByType text/css M604800
ExpiresByType text/html M604800
# Compress entire website
<IfModule deflate_module>
# Enable compression for the following file types.
AddOutputFilterByType \
DEFLATE \
application/javascript \
text/css \
text/html \
text/javascript \
text/plain \
text/xml
</IfModule>
#
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]