htaccess error

Discussion in 'Site & Server Administration' started by paparts, Apr 1, 2009.

  1. #1
    paparts, Apr 1, 2009 IP
  2. FreedomFighter1210

    FreedomFighter1210 Banned

    Messages:
    307
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Make sure that all of your file extensions are correct and that everything in located in the proper directory.
     
    FreedomFighter1210, Apr 2, 2009 IP
  3. paparts

    paparts Active Member

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thank you for the quick reply. Everything is in place and I am using wordpress. I dont really have other ideas how to solve this.
     
    paparts, Apr 2, 2009 IP
  4. RobsterUK

    RobsterUK Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The file it prompts you to download has the extension PHTML

    I'm guessing this is a mistake and I wouldn't expect your server recognises that as a browseable file type.

    Perhaps you can paste the contents of your .htaccess file
     
    RobsterUK, Apr 2, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    I think the problem with PHP handler on the server as it doesn't execute PHP file and instead of that it is downloading the page. If you are the administrator of the server check your Apache and PHP configuration or contact your host if you are on shared server.

    Also, if you have any code in your .htaccess containing following line then comment it and then try to access your site:

    application/x-httpd-php

    You will need to check for .htaccess in your root folder (publc_html) as well as out side root folder.

    Kailash
     
    kailash, Apr 2, 2009 IP
  6. paparts

    paparts Active Member

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Thank you for the help. Here is the HTACCESS

    anyway I just solved the problem. The server is not using PHP5. I just commented AddHandler application/x-httpd-php5 .html .php .htm line and changed it to AddHandler application/x-httpd-php .html .htm .php and it was solved thanks for the help.
     
    paparts, Apr 2, 2009 IP
  7. paparts

    paparts Active Member

    Messages:
    112
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7
    Thank you all.
     
    paparts, Apr 2, 2009 IP