skip to Main Content

Using any Jquery AJAX requests to load PHP script cause script to be returned and not run by server – Plesk

I am using the following code: $.post( "includes/modules/list.php" ); And I have tried the following: jQuery("#empty").load("/includes/modules/list.php", {}, function() { refreshlist(); }); And: $.post("/includes/modules/list.php",function(data){ alert(data); }); It was working fine on IIS but after switching to Apache (which I thought would…

VIEW QUESTION

web.config to mod_rewrite returning 400 Bad Request – Plesk

First time using mod_rewrite here I have this rules working on IIS: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.webServer> <rewrite> <rules> <rule name="services" stopProcessing="true"> <match url="^([a-z]+)/service/([a-zA-Z-]+)" /> <action type="Rewrite" url="serveis.php?id={R:2}&amp;lang={R:1}"/> </rule> <rule name="categories" stopProcessing="true"> <match url="^([a-z]+)/category/([a-zA-Z-]+)" /> <action type="Rewrite" url="subhome.php?id={R:2}&amp;lang={R:1}"/> </rule>…

VIEW QUESTION
Back To Top
Search