Change Page Suffix to .php?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jlkane
New Member
New Member
Posts: 2
Joined: Sun May 28, 2023 2:13 am
Location: Rochester, NY

Change Page Suffix to .php?

Post by jlkane »

We use the excellent Form Tools toolkit (https://formtools.org/) to implement a number of forms on our site. This week, we got attacked by a bot that made a large number of spam submissions, so it's time to add a reCAPTCHA to our forms... but there's a catch (pardon the pun). The Form Tools documentation says:
Your form page needs to be a .php file (or whatever file extension is used for PHP on your server).
We're using pretty URLs. Is there a way for me to force only the few pages that include forms to present themselves with the .php file suffix?

For reference, our site is:
https://weaversguildofrochester.org
and a typical form-bearing page is:
https://weaversguildofrochester.org/membership-form

Thanks in advance for your help,
Jim
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Change Page Suffix to .php?

Post by DIGI3 »

The easiest way would probably be to just add, for example, membership-form.php in the 'url' field for that page. Or you could give the non-pretty url to the script (index.php?page=membership-form)
Not getting the answer you need? CMSMS support options
jlkane
New Member
New Member
Posts: 2
Joined: Sun May 28, 2023 2:13 am
Location: Rochester, NY

Re: Change Page Suffix to .php?

Post by jlkane »

Thank you for both suggestions... and for the VERY prompt help! I'll try both approaches and report back after the holiday weekend.

Much obliged,
Jim
Post Reply

Return to “CMSMS Core”