1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP on HTM Pages - Godaddy .htaccess

Discussion in 'Apache' started by jayg5000, Aug 16, 2007.

  1. #1
    I recently created a new account on Godaddy and want to configure the .htaccess file to be able to handle php in htm or html files. I have tried AddType and AddHandle but am new to this. Anyone know the exact code needed for a Godaddy .htaccess file?
     
    jayg5000, Aug 16, 2007 IP
  2. GDHosting

    GDHosting Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    [FONT=&quot]I'd like to attach a link to our help center article, but I don't have enough posts yet! Instead, I will direct you to the help center article that will get this cleared up. First, access the url help.godaddy.com (no www). Once there, type- How do I use htaccess to manage my PHP file extensions? in the search for field and you will find it is listed second.

    Alicia R.
    Go Daddy Hosting[/FONT]
     
    GDHosting, Aug 16, 2007 IP
  3. jayg5000

    jayg5000 Active Member

    Messages:
    223
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thanks for the reply and help. I have actually been to that page and tried both:

    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4

    but neither one worked. I finally called up and asked what was going on and found out that I was actually on a Windows server even though I selected Linux. Now the note on the top of the page "NOTE: This content only applies to our Linux shared hosting accounts running Hosting Configuration 2.0." makes more sense. I am still waiting for them to switch over the account from Windows to Linux and I'll let you know if that fixed my problem.
     
    jayg5000, Aug 16, 2007 IP
  4. jayg5000

    jayg5000 Active Member

    Messages:
    223
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    That did the trick! I added: AddHandler x-httpd-php5 .php .htm into my .htaccess file and htm files are now being process as php. I guess you just need to make sure you are on Linux - PHP.
     
    jayg5000, Aug 17, 2007 IP