Changing php pages to htm

6 posts by 2 authors in: Forums > CMS Builder
Last Post: July 5, 2012   (RSS)

By ThreeTree - June 27, 2012

I know that a change can be made at the server so that pages appear as htm and not php. Not sure what to request and if all hosting services can make this update. Client hosts with GoDaddy and the hosting service I usually use. Some pages on the site will be php others htm (without CMS Builder coding) and I would like a link currently coded as htm to go to the corresponding php page. Is this possible? I don't understand my options and how pages coded as php work. Can I just save the page as an htm page with the php code?

Re: [ThreeTree] Changing php pages to htm

By Jason - June 27, 2012

Hi,

You can usually put a rule into your .htaccess file that will tell the server to execute a file with a .htm extension as .php

Take a look here:
http://php.about.com/od/advancedphp/p/html_php.htm

Hope this helps get you started.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [ThreeTree] Changing php pages to htm

By ThreeTree - June 29, 2012

I followed the instructions, created a file named .htaccess and uploaded it. Named the page with .htm instead of php and it didn't work. Called GoDaddy support before doing this to confirm placement of .htaccess code. Page did not display the CMS Builder php functions and also displayed the php code that is at the top of the page. I'm obviously missing something and don't know how to resolve this situation.

Re: [ThreeTree] Changing php pages to htm

By Jason - July 2, 2012

Hi,

If you'd like to send in a [url http://www.interactivetools.com/support]2nd Level Support Request[/url], we can take a look and see if there are any problems we can notice.

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Changing php pages to htm

By ThreeTree - July 5, 2012

Thanks Jason, I will complete the 2nd level request form.