Question lỗi tự download file index.php

Thảo luận trong 'Troubleshoot & Other Questions' bắt đầu bởi dangthangktdn, 9/10/12.

1votes
5/5, 1 vote

  1. dangthangktdn

    dangthangktdn New Member

    Bài viết:
    7
    Likes :
    0
    Mọi người cho em hỏi, có cách nào khắc phục tình trạng tự download file index.php khi mình vào diễn đàn không ạh?

    forum của em, nếu vào forum = link: diendan.vietbody.vn là nó tự download file index.php về ah.
    Chỉ khi nào vào bằng diendan.vietbody.vn/index.php thì không sao hết. :(
     
    Đang tải...
  2. Logi

    Logi Well-Known Member

    Bài viết:
    1,087
    Likes :
    456
    Bạn xem lại file htaccess xem nhé. Gần như chắc chắn lỗi do nó mà ra
     
    dangthangktdn thích bài này.
  3. dangthangktdn

    dangthangktdn New Member

    Bài viết:
    7
    Likes :
    0

    Đây là file .htaccess của mình.
    Bạn xem giúp mình được không?
    Mã:
    #    Mod_security can interfere with uploading of content such as attachments. If you
    #    cannot attach files, remove the "#" from the lines below.
    #<IfModule mod_security.c>
    #    SecFilterEngine Off
    #    SecFilterScanPOST Off
    #</IfModule>
     
    ErrorDocument 401 default
    ErrorDocument 403 default
    ErrorDocument 404 default
    ErrorDocument 500 default
     
    <IfModule mod_rewrite.c>
        RewriteEngine On
     
        #    If you are having problems with the rewrite rules, remove the "#" from the
        #    line that begins "RewriteBase" below. You will also have to change the path
        #    of the rewrite to reflect the path to your XenForo installation.
        #RewriteBase /xenforo
     
        #    This line may be needed to enable WebDAV editing with PHP as a CGI.
        #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     
        RewriteCond %{REQUEST_FILENAME} -f [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
        RewriteCond %{REQUEST_FILENAME} -d
        RewriteRule ^.*$ - [NC,L]
        RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
        RewriteRule ^.*$ index.php [NC,L]
    </IfModule>
     
  4. sanvu88

    sanvu88 Well-Known Member

    Bài viết:
    1,048
    Likes :
    467
    htaccess không có vấn đề gì cả =="
     
    dangthangktdn thích bài này.
  5. dangthangktdn

    dangthangktdn New Member

    Bài viết:
    7
    Likes :
    0
    Vậy thì không có cách nào khắc phục lỗi tự download lun hả? :(
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...