Portal Home > Knowledgebase > Articles Database > Website Downloads a File instead of Loading Index
Website Downloads a File instead of Loading Index
Posted by jweeb, 05-26-2011, 09:10 PM |
Hi,
One of my client's websites - geylangchurch.com downloads a "download" file automatically when it is viewed, instead of displaying the index page. This website uses Joomla.
The strange thing is that I have other Joomla and PHP type websites as well, and they don't have the same problem.
Anyone knows how to resolve it?
|
Posted by Syslint, 05-26-2011, 09:32 PM |
check the .htaccess for AddHandler or AddType and remove it.
|
Posted by jweeb, 05-26-2011, 09:35 PM |
Thanks for the reply. But there's no such syntax.
Code as follows
------
##
# @version $Id: htaccess.txt 1570 2005-12-29 05:53:33Z eddieajau $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##
Options +FollowSymLinks
#
# mod_rewrite in use
#
RewriteEngine On
##
## NOTE!
## When using multiple Joomla sites or other web applications in sub-folders,
## you must explicitly turn the RewriteEngine off or use the settings
## recommended for the application
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)
# RewriteBase /YourJoomlaDirectory
#
# Rules
#
RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RewriteCond %{HTTP_HOST} ^geylangchurch.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.geylangchurch.com$
RewriteRule ^mail\/?(.*)$ "http\:\/\/mail\.google\.com\/a\/geylangchurch\.com\/$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^geylangchurch.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.geylangchurch.com$
RewriteRule ^email\/?$ "http\:\/\/mail\.google\.com\/a\/geylangchurch\.com\/" [R=301,L]
|
Posted by Syslint, 05-26-2011, 09:56 PM |
ok check the parent folders .htaccess . Then make a phpinfo page on mail document root ( in cpanel servers /usr/local/apache/htdocs/phpinfo.php ) and access it over browser , and check if it woks . If it won't works , then your apache_ php configuration having issues.
Are you using cpanel ?
|
Posted by jweeb, 05-26-2011, 10:43 PM |
Thank you for solving our issue. We have engaged Sysint, and they solved it within 5 mins. Very efficient company. For those looking for server management support, they are a serious contender.
|
Add to Favourites Print this Article
Also Read
SYN_RECV (Views: 610)
AtomHost.com (Views: 485)