Results 1 to 5 of 5
-
05-26-2011, 09:10 PM #1Web Hosting Master
- Join Date
- Jun 2009
- Location
- Singapore
- Posts
- 795
Website Downloads a File instead of Loading Index
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?Jweeb Solutions
Singapore Web Consulting & Solutions
Web Consulting - Web Hosting - Web Design & Development and more...
http://www.jweeb.com.sg - Making the Web Simple!
-
05-26-2011, 09:32 PM #2Web Hosting Master
- Join Date
- Apr 2009
- Location
- inside wht
- Posts
- 746
check the .htaccess for AddHandler or AddType and remove it.
24x7 PROACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
Sales : sales @ syslint.com | Call us : (+91)9447607799 | Are you looking for DevOps Admins ?
-
05-26-2011, 09:35 PM #3Web Hosting Master
- Join Date
- Jun 2009
- Location
- Singapore
- Posts
- 795
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]Jweeb Solutions
Singapore Web Consulting & Solutions
Web Consulting - Web Hosting - Web Design & Development and more...
http://www.jweeb.com.sg - Making the Web Simple!
-
05-26-2011, 09:56 PM #4Web Hosting Master
- Join Date
- Apr 2009
- Location
- inside wht
- Posts
- 746
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 ?24x7 PROACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
Sales : sales @ syslint.com | Call us : (+91)9447607799 | Are you looking for DevOps Admins ?
-
05-26-2011, 10:43 PM #5Web Hosting Master
- Join Date
- Jun 2009
- Location
- Singapore
- Posts
- 795
Jweeb Solutions
Singapore Web Consulting & Solutions
Web Consulting - Web Hosting - Web Design & Development and more...
http://www.jweeb.com.sg - Making the Web Simple!
Similar Threads
-
Website Hacked - index file replaced
By jweeb in forum Hosting Security and TechnologyReplies: 4Last Post: 03-26-2010, 05:13 AM -
redirecting file downloads
By odsdc in forum Hosting Security and TechnologyReplies: 1Last Post: 06-19-2006, 10:01 AM -
Index Not Loading
By Staminet in forum Web Design and ContentReplies: 8Last Post: 10-26-2005, 05:02 AM -
index.php not loading.
By Milo in forum Programming DiscussionReplies: 2Last Post: 05-28-2004, 02:17 PM -
auto loading an index page (how to?)
By atr in forum Hosting Security and TechnologyReplies: 6Last Post: 09-29-2002, 11:51 PM