You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Rose, John B" <jb...@utk.edu> on 2018/10/02 18:41:07 UTC
[users@httpd] Remove .php extension but still pass it to PHP-FPM
We would like to strip select .php extensions within a web site but still have them passed to PHP-FPM when they are clicked on.
Any help would be appreciated
Re: [users@httpd] Remove .php extension but still pass it to PHP-FPM
Posted by Frank Gingras <th...@apache.org>.
Why do you want to remove the extensions?
On Tue, Oct 2, 2018 at 2:45 PM Filipe Cifali <ci...@gmail.com>
wrote:
> You can reach that via mod_rewrite [1] and a combination of rules for
> checking if the file exists before the proxy, depending on the proxy,
> itself can do the checking.
>
>
> [1] https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
>
> On Tue, Oct 2, 2018 at 3:41 PM Rose, John B <jb...@utk.edu> wrote:
>
>> We would like to strip select .php extensions within a web site but still
>> have them passed to PHP-FPM when they are clicked on.
>>
>>
>> Any help would be appreciated
>>
>
>
> --
> [ ]'s
>
> Filipe Cifali Stangler
>
Re: [users@httpd] Remove .php extension but still pass it to PHP-FPM
Posted by Filipe Cifali <ci...@gmail.com>.
You can reach that via mod_rewrite [1] and a combination of rules for
checking if the file exists before the proxy, depending on the proxy,
itself can do the checking.
[1] https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
On Tue, Oct 2, 2018 at 3:41 PM Rose, John B <jb...@utk.edu> wrote:
> We would like to strip select .php extensions within a web site but still
> have them passed to PHP-FPM when they are clicked on.
>
>
> Any help would be appreciated
>
--
[ ]'s
Filipe Cifali Stangler