Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Location
    Singapore
    Posts
    792

    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!

  2. #2
    Join Date
    Apr 2009
    Location
    inside wht
    Posts
    716
    check the .htaccess for AddHandler or AddType and remove it.
    24x7 PRO-ACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
    Now Available The first Support Brand for Startup Hosting Companies

    Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91)6007799

  3. #3
    Join Date
    Jun 2009
    Location
    Singapore
    Posts
    792
    Quote Originally Posted by Syslint View Post
    check the .htaccess for AddHandler or AddType and remove it.
    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!

  4. #4
    Join Date
    Apr 2009
    Location
    inside wht
    Posts
    716
    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 PRO-ACTIVE SERVER MANAGEMENT | OUTSOURCED WEB HOSTING SUPPORT
    Now Available The first Support Brand for Startup Hosting Companies

    Sales : sales @ syslint.com | Skype us : SyslintSkype | Call us : (+91)6007799

  5. #5
    Join Date
    Jun 2009
    Location
    Singapore
    Posts
    792
    Quote Originally Posted by Syslint View Post
    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 ?
    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.
    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

  1. Website Hacked - index file replaced
    By jweeb in forum Hosting Security and Technology
    Replies: 4
    Last Post: 03-26-2010, 05:13 AM
  2. redirecting file downloads
    By odsdc in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-19-2006, 10:01 AM
  3. Index Not Loading
    By Staminet in forum Web Design and Content
    Replies: 8
    Last Post: 10-26-2005, 05:02 AM
  4. index.php not loading.
    By Milo in forum Programming Discussion
    Replies: 2
    Last Post: 05-28-2004, 02:17 PM
  5. auto loading an index page (how to?)
    By atr in forum Hosting Security and Technology
    Replies: 6
    Last Post: 09-29-2002, 11:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •