Plesk ignores .htaccess file
Date : March 29 2020, 07:55 AM
this one helps. Try ISAPI Rewrite for IIS. It supports mod_rewrite rules of Apache and it is supported by Plesk.
|
where is .htaccess in parallel plesk? should I creat it by myself?
Tag : apache , By : nonkelhans
Date : March 29 2020, 07:55 AM
With these it helps Actualy there should be a file with name .htaccess on your server's root folder, sometimes it may be empty and you have to write your commands on it! but if there is not, and if your host gave you privilege, you can creat one...
|
SSL certificates in Plesk
Tag : ssl , By : Al Dimond
Date : March 29 2020, 07:55 AM
it fixes the issue Both locations in PLESK (v12) accomplish the exact same thing. The one added benefit to adding the SSL under the domain name is accessing the IP address via HTTPS (answer from hosting company). I hope it helps someone in the future.
|
How to use Plesk api with php?
Date : March 29 2020, 07:55 AM
|
how to run a web api program on plesk
Date : March 29 2020, 07:55 AM
wish helps you I should Enable Cross-Origin Requests in ASP.NET Web API 2. I read this topic in HereI should install using System.Web.Http;
namespace WebService
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
// New code ((((((important this (config.EnableCors) item ))))))
config.EnableCors();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
}
}
using System.Net.Http;
using System.Web.Http;
//((((((important this (using System.Web.Http.Cors) item ))))))
using System.Web.Http.Cors;
namespace WebService.Controllers
{
//((((((important this (EnableCors) item ))))))
[EnableCors(origins: "http://mywebclient.azurewebsites.net", headers: "*", methods: "*")]
public class TestController : ApiController
{
// Controller methods not shown...
}
}
|