It is .php or html

Hey Adam,

Do Foundry pages use .php extension by default? I am updating old sites and finding both index.html and index.php in most directories.

Thanks.
Blessings,
—Mark

Foundry’s stacks are like any other stacks – if they are a stack that requires PHP then it will change the page’s extension to PHP instead of HTML. That being said there is only one stack in Foundry that requires PHP at this time and that is the Form stack. If the Form stack is on a page it would change the extension to PHP, otherwise it will be whatever you’ve set it at.

Of course, that being said, if you have a different stack on the page, that isn’t a Foundry stack, and of which requires PHP, that stack could change the page’s extension to PHP as well.

That help out?

1 Like

Of course, the forms stack! Duh. Sometimes I think I check my brain at the door!

I placed a Form stack in a Focus stack in the footer partial so naturally it will change all the ext’s to .php. Makes perfect sense.

Thanks!
Blessings,
—Mark

1 Like

No problem. Glad to help out.