Behebung von AddType- oder AddHandler-Problemen

753
alnmurray

Ich bin vor kurzem von einem alten Godaddy-Hosting-Konto zu einem neuen Godaddy Cpanel-Hosting-Konto gewechselt.

Die Menüs auf der Website werden mithilfe von PHP-Anweisungen erstellt, die auf dem alten Hosting-Konto ausgeführt wurden. Auf diesem neuen Hosting funktioniert die PHP-Include-Anweisung jedoch nicht. Wenn Sie auf einen Link auf der Website klicken, wird das Dialogfeld zum Speichern einer Datei anstelle des HTML-Links zum Öffnen einer Webseite gespeichert. Der Server ist Deluxe Linux Hosting mit cPanel, auf dem Apache PHP 5.3 ausgeführt wird. Dies ist der htaccess, der auf dem alten Hosting-Konto funktioniert hat. Wie kann ich dieses Problem beheben?

#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 % off RewriteRule (.*) https://%% [R=301,L] 
1

0 Antworten auf die Frage