Page 1 of 1

Index.htm to index.php

Posted: Sat 06 Mar 2021 9:35 pm
by imballinger
How can I change my index from htm to php?

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 12:03 am
by ConligWX
is this dues to you wanting to run php code within html?

simple way in .htaccess

Code: Select all

"AddType application/x-httpd-php .html .htm"
but since no information on what type of webserver setup you have i am merely guessing.

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 3:08 am
by jlmr731
Im guessing this is what you want to upload to server at auto generation? So if using MX and under settings / extra web files at your local template file to the local filename and then the proper destination path and just use index.php as the filename, check ftp if you use it to up the file

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 3:31 am
by beteljuice
If it's NOT being processed / uploaded by Cu then just rename it on your server ;)
... but check any menu links in any of your pages ...

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 9:41 am
by imballinger
I believe index.htm is being uploaded by cumulus

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 9:42 am
by imballinger
ConligWX wrote: Sun 07 Mar 2021 12:03 am is this dues to you wanting to run php code within html?

simple way in .htaccess

Code: Select all

"AddType application/x-httpd-php .html .htm"
but since no information on what type of webserver setup you have i am merely guessing.
I have tried that but go no success, what server information do you need?

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 10:05 am
by water01
imballinger wrote: Sat 06 Mar 2021 9:35 pm How can I change my index from htm to php?
What exactly are you trying to achieve by doing this, because it is not clear why you want to do this?

If we know for instance that you want to run php web pages just simply turning .htm files to .php will not achieve this.

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 10:37 am
by imballinger
water01 wrote: Sun 07 Mar 2021 10:05 am
imballinger wrote: Sat 06 Mar 2021 9:35 pm How can I change my index from htm to php?
What exactly are you trying to achieve by doing this, because it is not clear why you want to do this?

If we know for instance that you want to run php web pages just simply turning .htm files to .php will not achieve this.
I am trying to run a PHP in a html page. If I change index.htm to php it does work, but cumulus will only update to index.htm

Re: Index.htm to index.php

Posted: Sun 07 Mar 2021 11:02 am
by water01
See my answer in the Current Conditions Topic.