The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

html appears as text after transfer from another cpanel server

Discussion in 'General Discussion' started by radicalrick, Jun 20, 2013.

  1. radicalrick

    radicalrick Member

    Joined:
    May 1, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I recently transfer several websites to a new server using WHM. Two of them display html as text in the browser. I copied one of the html files to another domain on same server and it displays as a webpage like it should. Is this a common problem and easily repaired?
     
  2. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    262
    Likes Received:
    12
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    Check any .htaccess files for the problem domain to see if anything there may be affecting it.
     
  3. radicalrick

    radicalrick Member

    Joined:
    May 1, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    deleted .htaccess file, did not help.
    I renamed index.html to index.htm and page displays correctly, not a fix but a Band-Aid and maybe a clue
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Try to add following code in your .htaccess file if your are still facing the same issues with your other site

     
  5. radicalrick

    radicalrick Member

    Joined:
    May 1, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    My Apology, I thought I deleted the .htaccess but after adding AddHandler application/x-httpd-php5 .html I noticed everything I thought was gone was still there. A fresh .htaccess file with server-parsed .html for includes and problem is fixed.

    Thanks for all of your help
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page