Remove Index.php
Permalink
Dear All,
We were using a normal jQuery Post with controller function. The post is by default appending with index.php ($.post("/index.php?.......)). How can i remove index.php.
We were using a normal jQuery Post with controller function. The post is by default appending with index.php ($.post("/index.php?.......)). How can i remove index.php.
$.post("<?= str_replace("&", "&", $this->action('get_branch_timing')) ?>",
{
branchCode: branchCode
},
function (data, status)
{
if (status === 'success')
{
}
});
when i execute this the above will replace with
$.post("/index.php?cID=9855&bID=37509&arHandle=Main&ccm_token=766676576e&btask=passthru&method=get_branch_timing",
I don't want to call index.php because it is blocked by the security.
{
branchCode: branchCode
},
function (data, status)
{
if (status === 'success')
{
}
});
when i execute this the above will replace with
$.post("/index.php?cID=9855&bID=37509&arHandle=Main&ccm_token=766676576e&btask=passthru&method=get_branch_timing",
I don't want to call index.php because it is blocked by the security.
@bbaby
Have you tried enabling Pretty URLs?
https://documentation.concrete5.org/editors/dashboard/system-and-mai...
Have you tried enabling Pretty URLs?
https://documentation.concrete5.org/editors/dashboard/system-and-mai...
Yes, It is already configured. I think the issue is only with jquery post request.
How are you adding the URL?